LESSON 2.3

groupby and aggregation

11:05·23,325 learners
Tomas BergTomas Berg
Next lesson

In this lesson you will

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

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

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.

PRO TIP

Think split-apply-combine. Almost every reporting question is a groupby wearing a disguise.

UP NEXT

3.1 · Plotting with matplotlib

30:51

Python for Data Work

42%

Every lesson, searchable to the second.

© 2026 BIBLION

PRIVACY · TERMS · CONTACT