S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which method transposes rows and columns in a DataFrame?

  • (A) transpose()
  • (B) T
  • (C) Both A and B
  • (D) swap()
  • Correct Answer - Option(C)
  • Views: 6
  • Filed under category Pandas
  • Hashtags:

Explanation by: Shyam Dubey
Both transpose() and the T attribute transpose rows and columns of a DataFrame.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.