LL
LL
1. Write python statements to create a data frame for the following data.
Name Age Designation
Heema 30 Teacher
Sami 40 Principal
Rajni 28 Clerk
4. Add One more Column ‘FName’ with suitable contents to the above Data Frame
print('Transpose ')
print(df.T)
WORKSHEET 5 PANDAS : DATA FRAME
1. Create the following Data Frame ‘Employee’
Name Age Department Sal Gender
1 SAGAR 62 COMPUTER 10000 M
2 PABITRA 22 HISTORY 15000 M
3 PRAKASH 32 GEOGRAPHY 12000 M
4 AKASH 12 COMPUTER 15000 M
5 NABANITA 30 HISTORY 12000 F
6 KANIKA 16 PHYSICS 20000 F
7 MAYURIKA 29 CHEMISTRY 18000 F
8 PRADEEP 45 ACCOUNTANCY 14000 M
9 SANJOY 19 H.SCIENCE 12000 M
10 ANKUR 23 C.ART 15000 M
print('size ',Employee.size)
print('Dimensions ',Employee.ndim)
print('Values ',Employee.values)
print('shape',Employee.shape)
print('Empty ',Employee.empty)