Python · Lesson 6.4 · Pro
Counting and grouping
The two dictionary patterns you'll use most with data: counting things and grouping rows.
In this lesson
- Count with a dictionary
- Sum per group
- Collect items into lists
- From groups to averages
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.