...

/

Grouping Data __ Part 2

Grouping Data __ Part 2

Let's learn other operations about groups.

Aggregate

In the last lesson, we have shown how to use groupby to split data and aggregate them in each group. The group is calculated by various native pandas functions. However, pandas also provides a universal interface, agg(), which accepts a Numpy function name as a parameter.

In the example below, two different methods are demonstrated.

Access this course and 1400+ top-rated courses and projects.