What is the purpose of reset_index() and when would you use it?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Explain what the pandas reset_index() method does to a DataFrame or Series index and when you would call it. It tests your grasp of groupby and pivot output, MultiIndex handling, the drop and level parameters, and index alignment pitfalls.