Skip to content

Glossary: pandas Basics

agg

Also written: .agg(), aggregate

Builds a summary table with several named results per group. Each keyword is a new column name set to a (column, calculation) tuple, such as `sales=("total", "sum")`.

Where the book teaches it

Related terms

groupby