English

Consider the following DataFram df and answer the following question. Write down the command that will give the following output. -

Advertisements
Advertisements

Question

Case Based

Consider the following DataFram df and answer the following question.

Roll no. Name UT1 UT2 UT3 UT4
1 Prerna Singh 24 24 20 22
2 Manish Arora 18 17 19 22
3 Tanish Geol 20 22 18 24
4 Falguni Jain 22 20 24 20

Write down the command that will give the following output.

Roll no. 6
Name Tanish Geol
UT1 24
UT2 24
UT3 24
UT4 24

dtype: object

Options

  • print (df.max)

  • print df.max()

  • print (df.max (axis=l))

  • print (df.max, axis=l)

MCQ

Solution

print (df.max)

shaalaa.com
DataFrame
  Is there an error in this question or solution?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×