Discuss the use of groupby() in Pandas and provide an example.
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks what pandas groupby does and for a worked example of using it. Tests the split-apply-combine model, the difference between aggregation, transform and filter, grouping on multiple keys, and how group keys and missing values appear in the result.