pandas · Lesson 5.1 · Pro
groupby
Split rows into groups, compute something for each, and get one row per group back.
In this lesson
- One number per group
- Count rows: size
- Group by several columns
- Rates per group
Go Pro to read this lesson
Pro unlocks every lesson and practice problem in SQL, Python, pandas and NumPy, with answers and step-by-step explanations.