Question:

Which of the following function will display the average of each row of a dataframe named df?

Updated On: Sep 12, 2024
  • df.mean()
  • df.mean(axis=1)
  • df.mean(axis=0)
  • df.mean(AXIS = 0)
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

The correct option is(B):df.mean(axis=1)
Was this answer helpful?
0
0