A

Admin • 833.24K Points
Coach

Q. What does `df.T` do?

  • (A) Transpose the DataFrame
  • (B) Select top rows
  • (C) Remove rows
  • (D) Convert to tuple
  • Correct Answer - Option(A)
  • Views: 21
  • Filed under category Pandas
  • Hashtags:

Explanation by: Admin

`df.T` transposes the DataFrame (swap rows and columns).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.