A groupby operation: splits the data, applies a function to each group, and combines the results.

The Pandas library offers a handy explanation.