Skip to content

Glossary: pandas Basics

groupby

Also written: .groupby(), split-apply-combine

Splits rows into groups that share a value, calculates something for each group, and combines the answers into one result. For example `orders.groupby("customer")["total"].sum()` gives sales per customer.

Where the book teaches it

Related terms

aggMultiIndex