S

Sikhar Chaudhary • 5.88K Points
Tutor III

Q. Which pandas method reshapes a DataFrame by pivoting the index and columns?

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

Explanation by: Sikhar Chaudhary
The pivot() method reshapes data by turning unique values from a column into new columns.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics