Practice Set
Practice Set
Practice Set
1. Write a program to create a DataFrame to store weight, age, name of 5 people. 2+3=5
(a) Print the DataFrame and its Transpose.
(b) Display the last two rows of Datframe
(c) Display the first two columns of DataFrame
2. KV Tezpur celebrated volunteering week where each section of class XI dedicated a day for 3
collecting amount for charity being supported by the school. A volunteered on Monday,B on
Tuesday,C on Wednesday and so on. There are six sections in class XI. Amount collected by
section A to F are 8000,1200,9800,11200,155500,7300.
Write a program to create a bar chart showing collection amount. The graph should
have proper and axes titles.
3. Create a table and Write SQL commands for the following on the basis of given table STUDENT. 2+5=7
1. Create the following DataFrame Sales containing year wise sales figures for five salespersons 2+3
in INR.Use the years as column labels and salesperson names as row labels.
(I) To display Sales name and bonus after rounding off to zero decimal places.
(II) To display the position of occurrence of the “ta” in Salesman names.
(III) To display the four characters from Salesman name starting from second character.
(IV) To display the month name for the date of join of salesman.
(V) To display the name of the weekday for the date of join of salesman.
SET-3