S

Sikhar Chaudhary • 5.88K Points
Tutor III

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: 26
  • Filed under category Pandas

Explanation by: Sikhar Chaudhary
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.


Question analytics