Q. Which method pivots the index into columns in pandas?
β
Correct Answer: (B)
unstack()
Explanation: unstack() moves a level of the row index to the column axis, effectively pivoting it.