Class XII IP Summer Assignment
Class XII IP Summer Assignment
Q1. Create following Dataframe Hospital from a 2D dictionary having value as lists:
Q2. Create following Dataframe Sales from a 2D dictionary having values as dictionary objects:
Q3. Create following Dataframe topdf from a 2D list having dictionaries as its elements.
Q6. Write a Python code to create a DataFrame ‘temp’ by using Series method:
Page 1 of 5
1) Display all the product details of record no 102,104 and 106.
2) Display product and company details of 101 and 104 records of DataFrame df1
3) Display first record and third record of DataFrame df1.
4) Display quantity and company details of all records of DataFrame df1.
5) Change the salary of record no.104 to 50000.
6) Display the details of record no 104
7) Change the company name to acer and quantity to 400 of record no 101 and 102.
8) Add new record ["mic","dell",100,450] into DataFrame df1.
Do following operation
1) Add score1 and score2 and assign it to column total
2) Display lowest score of score1.
3) Display highest score of score2
4) change index to player1,player2, player3,player4
5) Display all the details of DataFrame whose score1 <75
6) Display only name of DataFrame whose score1 <75
7) Display name and score1 of DataFrame whose score1 <75
8) Display DataFrame in descending order of score2
9) Change the column name to batsmanno,bname, s1 ,s2 and sum of DataFrame
10)Add 5 score to those who have more than 75 score2
Page 4 of 5
Q24. Write a Python code to draw the following bar graph representing the average marks secured by
each student in Term-2 Exam. Add the Title and Label for X-axis and Y-axis. Use the following
data to draw the graph :
Q25.
Page 5 of 5