LESSON 2.3
groupby and aggregation
Learn key techniques and workflows in Python for Data Work.
11m
beginner
23,325 students
Overview
Split, apply, combine is the pattern behind nearly every summary table you will ever produce.
In this lesson you will:
- Group rows and aggregate each group
- Apply several aggregations at once
- Pivot and reshape a summary for presentation
Pro Tip
Think split-apply-combine. Almost every reporting question is a groupby wearing a disguise.