How can you pivot data in a DataFrame?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: A pandas interview question asking how to reshape a long DataFrame into a wide one with a pivot. It tests whether you know the roles of index, columns and values, when each pivot method applies, and how duplicate and missing combinations are handled.