S

Sikhar Chaudhary • 5.88K Points
Tutor III

Q. Which method pivots the index into columns in pandas?

  • (A) stack()
  • (B) unstack()
  • (C) pivot()
  • (D) melt()
  • Correct Answer - Option(B)
  • Views: 25
  • Filed under category Pandas

Explanation by: Sikhar Chaudhary
unstack() moves a level of the row index to the column axis, effectively pivoting it.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics