CBSE BOARD XII, asked by ParkaviSelvakumar, 7 months ago


Consider the following DataFrame df and answer any four questions from (i)-
(v)
UT1 UT2
rollno name
1 Prerna Singh
2. Manish Arora
3 Tanish Goel
4 Falguni Jain
5 Kanika Bhatnagar
6 Ramandeep Kaur
UT3
24
18
20
22.
15
UT 4
24
17
22
20
20
15
22.
22
24
20
19
18
24
18
22
22
24
20
i)
1
Write down the command that will give the following output.
zolino
6
name
Tanish Goel
UT1
24
UT2
24
UT3
24
UT4
24
dtype: object
a. print (df.max)
b. print (df.max () )
c. print (df.max (axis=1))
d. print (df.max, axis=1)​

Answers

Answered by BharathBangaram
3

Answer:

(i) (b) print(df.max()) (ii) (a) df1=df[df[‘rollno’]==4] print(df1) (d) df1=df[df.rollno==4] print(df1) (iii) (a) both (i) and (ii) (iv) (d) both (i) and (ii) (v) (b) df [‘Grade’]=[’A’,’B’,’A’,’A’,’B’,’A’]Read more on Sarthaks.com - https://www.sarthaks.com/971160/consider-the-following-dataframe-answer-questions-rollno-name-ut1-ut2-ut3-ut4-prerna-singh?show=971177#a971177

Similar questions