How do named aggregations work in pandas agg()?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how named aggregation works in a pandas groupby agg() call and why you would use it over a dict of functions. Tests working knowledge of grouped aggregation syntax, the shape of the result, and common pitfalls with output names and counts.