English

Find the median of the values of the rows of the DataFrame.

Advertisements
Advertisements

Question

Find the median of the values of the rows of the DataFrame.

Code Writing
Advertisements

Solution

dfRaman.loc[:, 'Maths':'Eng'].median(axis=1)

Explanation:

axis=1 finds the median value of each row in the DataFrame.

shaalaa.com
  Is there an error in this question or solution?
Chapter 3: Data Handling using Pandas - II - Intext Questions [Page 71]

APPEARS IN

NCERT Informatics Practices [English] Class 12
Chapter 3 Data Handling using Pandas - II
Intext Questions | Q 4. | Page 71
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×