16. Assume a dataframe df that contains data about IT Quiz Contest with
'SCI', 'SC2', 'SC3', 'SC4', 'SC5' as indexes shown below. Give the output of
any four questions from (i) to (v).
School at Students Winner Runner-up
APS
KPS
KOPS
12
SC MMP
18
20
i. >>>df.shape
ii. >>>df 2 : 4]
iii. >>>df.loc [ 'SC2': 'SC4', 'Winner)
iv. >>>df.iloc [ 2:4)
v. >>>df.Total Students
Answers
Answered by
0
Answer:
SCI’, ‘SC2’, ‘SC3’, ‘SC4’, ‘SC5’ as indexes shown below. Give the output of
any four questions from (i) to (v).
School at Students Winner Runner-up
APS
KPS
KOPS
12
SC MMP
18
20
i. >>>df.shape
ii. >>>df 2 : 4]
iii. >>>df.loc [ ‘SC2’: ‘SC4’, ‘Winner)
iv. >>>df.iloc [ 2:4)
v. >>>df.Total Students
Similar questions