Files

9 lines
783 B
Markdown
Raw Permalink Normal View History

2026-06-15 15:26:18 +02:00
# Groupby & Aggregation
2026-06-16 13:12:17 +02:00
`groupby()` splits a DataFrame into groups based on one or more columns, applies a function to each group, and combines the results. Common aggregation functions include `sum()`, `mean()`, `count()`, `min()`, `max()`, and custom functions via `agg()`. This split-apply-combine pattern is one of the most powerful features of Pandas.
Visit the following resources to learn more:
- [@official@pandas.DataFrame.groupby](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.groupby.html)
2026-06-16 13:32:53 +02:00
- [@article@All About Pandas Groupby Explained with 25 Examples](https://towardsdatascience.com/all-about-pandas-groupby-explained-with-25-examples-494e04a8ef56/)
2026-06-16 13:12:17 +02:00
- [@video@Group By and Aggregate Functions in Pandas |](https://www.youtube.com/watch?v=VRmXto2YA2I)