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

  1. Count with a dictionary
  2. Sum per group
  3. Collect items into lists
  4. From groups to averages