Professional Documents
Culture Documents
Xii Ip May Test Set 1
Xii Ip May Test Set 1
General instructions: There are 25 question and all questions are compulsory.
Vaanika has created the following data frame dataframe1 to keep track of data Rollno, Name,
Marks1 and Marks2 for various students of her class where row indexes are taken as the default
values:
Q4. Write a statement to display the total number of elements in the dataframe.
Very short answer type questions from question 6 to 20. (1 Mark each)
Q6. What is the significance of Pandas library?
Q7. Write code to create a Series object using the Python sequence [3, 5, 7, 9] .
Print (s2.index)
s2.index = [ 0, 1, 2, 3, 4, 5 ]
s2 [5] = 220
print (s2)
Q22. Write a python program to sort the data of student dataframe based on marks.