Lesson 2.3

groupby and aggregation

Split, apply, combine is the pattern behind nearly every summary table you will ever produce.

Duration
11m
Level
Beginner
Students
23k 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

Resources

pandas documentation

The official reference for the tools used in this lesson.