Several Summaries at Once: agg
agg works out several summaries for each group in one table, from a list such as ['sum', 'mean', 'count'] or by named aggregation, which names each new column and the column and summary it comes from; groupby takes a list of columns to group by two things at once, and reset_index or as_index=False turns the group labels back into ordinary columns.
Updated

- Category
- Data Analysis
- Level
- Journeyman
- Tags
- agg(), MultiIndex, Named Aggregation, python, reset_index()