IP XII Worksheet 2
IP XII Worksheet 2
Class – XII
Subject – Informatics Practices (065)
Worksheet – 2 (Pandas-I)
2- Which of the following function is used in Pandas to display the first few rows of a specific column in a
DataFrame?
a. show( )
b. display( )
c. head( )
d. view( )
5- Complete the given Python code to get the required output as: Rajasthan
import _________ as pd
di = {'Corbett': 'Uttarakhand', 'Sariska': 'Rajasthan', 'Kanha': 'Madhya Pradesh‟, 'Gir':'Gujarat'}
NP = ___________. Series( _____ )
print(NP[ ___________ ]
9- Ekam, a Data Analyst with a multinational brand has designed the DataFrame df that contains the four
quarter‟s sales data of different stores as shown below:
10- Write a program in Python Pandas to create the following DataFrame batsman from a Dictionary: