Mod 3
Mod 3
i) inner( ) ii) left( ) iii) right( ) (6M) (or) Explain merging of Data frames, using merge( ).
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)