0% found this document useful (0 votes)
16 views8 pages

Mod 3

The document outlines various methods and operations related to SQL databases and data manipulation in Python, including creating, inserting, updating, and deleting records in SQL, as well as handling missing values and reading/writing data in text format. It also covers merging DataFrames, data transformation techniques, and interacting with databases using Python. Additionally, it discusses data normalization, formatting, and the use of regular expressions for string manipulation.

Uploaded by

abhishes39561
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views8 pages

Mod 3

The document outlines various methods and operations related to SQL databases and data manipulation in Python, including creating, inserting, updating, and deleting records in SQL, as well as handling missing values and reading/writing data in text format. It also covers merging DataFrames, data transformation techniques, and interacting with databases using Python. Additionally, it discusses data normalization, formatting, and the use of regular expressions for string manipulation.

Uploaded by

abhishes39561
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

10) Explain the following methods related to SQL database with examples.

i) create( ) ii) insert( ) iii) fetchall( ) iv) update ( ) v) delete( )


11) How to handle missing values in python, explain with examples

b) Explain reading and writing data in text format in python.


12) Explain with example the following merge methods

i) inner( ) ii) left( ) iii) right( ) (6M) (or) Explain merging of Data frames, using merge( ).

Illustrate various merge type possible with merge () function.


13Explore the following data transformation methods: a) Discretization and binning b) Detecting and filtering outliers c)
Renaming axis indexes.
14) Write a note on interacting with databases in python. Write the code to load the data from SQL database.

15) Write a python program to perform the following operations: i. Read two CSV files and load it into a DataFrame ii.
Concatenate the two CSV files contents stored in DataFrame iii. Drop ‘na’ values iv. Change column names v. Fill missing
values using fillna( )
16) Write a python program in python for the following operations: i. Connect to a database ii. Execute a simple select query
& Load the returned data into a DataFarme iii. Display the DataFrame contents iv. Insert a row into the database table. v.
Update and delete a row from the database

17) Explain with example reshaping data frame using stack ( ) and unstack ( ) functions.
18) Explain the following data transformation functions i) duplicated( ) ii) drop_duplicates( ) iii) map( ) iv) replace( ) v) isnull( )
19) Write a note on data transformation and explain the following data transformation operation with examples. i) Removing
duplicates ii) Mapping iii) Replacing values iv) Renaming axis indexes.

20) Explain the categories of optimal arguments in pandas CSV read ( ) function. Write a python program to read a CSV file
and load into a data frame and also write the contents of the data frame to a CSV file by selecting only chosen columns from
the data frame.

21) What are the built-in ways in which i) Data contained in pandas objects can be combined together? (6M) ii) Show an
example of merging data on index (4M)

22) Explain with an examples the regular expression methods used for string manipulation. (10M)

23) Explain various techniques used for data normalization in python. (10M)

24) Explain various ways of formatting data in python.

You might also like