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?
