When would you use a MultiIndex (hierarchical index) in Pandas, and what are its advantages?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Describe when a pandas MultiIndex is the right choice and what it gives you over a flat index. The question tests whether you can match it to panel data such as (ticker, date), name its advantages for selection, reshaping and grouping, and know when to flatten it again.