A

Admin • 833.24K Points
Coach

Q. Which method is used to transpose a DataFrame?

  • (A) df.transpose()
  • (B) df.T
  • (C) Both a and b
  • (D) df.flip()
  • Correct Answer - Option(C)
  • Views: 21
  • Filed under category Pandas
  • Hashtags:

Explanation by: Admin

Both `transpose()` and `.T` can be used to transpose a DataFrame.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.