groupby and aggregation

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

Lesson 2.311m 5sBeginner23.3k students

Chapters

11:05
  1. 0:00Intro
  2. 0:15Read in Dataset
  3. 1:20First Group By
  4. 3:08Popular Aggregate Functions
  5. 5:38.agg Function
  6. 7:32Group By on Multiple Columns

What this lesson covers

  • Group rows and aggregate each group
  • Apply several aggregations at once
  • Pivot and reshape a summary for presentation

This lesson sits in pandas Essentials, part of Python for Data Work. It assumes what came before it and leads directly into the next lesson in the module.

In this lesson you will

  • Group rows and aggregate each group
  • Apply several aggregations at once
  • Pivot and reshape a summary for presentation

Resources