What does set_index() do and how does it differ from reset_index()?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks what the Pandas set_index() method does and how it differs from reset_index(). It tests moving columns into and out of the row index, MultiIndex handling, the drop parameter in each method, and the common pattern of flattening groupby results.