πŸ“Š Pandas
Q. Which method pivots the index into columns in pandas?
  • (A) stack()
  • (B) unstack()
  • (C) pivot()
  • (D) melt()
πŸ’¬ Discuss
βœ… Correct Answer: (B) unstack()

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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
35
Total Visits
πŸ“½οΈ
4 mo ago
Published
πŸŽ–οΈ
Sikhar Chaudhary
Publisher
πŸ“ˆ
96%
Success Rate