FOMO Daily
Feed
Lerner Consulting Blogยท

Pandas groupby: Aggregating multiple columns with multiple functions

Data EngineeringPythonpandasAggregation

TL;DR

Pandas can aggregate multiple data columns using multiple functions in a single groupby operation. Applying mean and standard deviation returns a DataFrame with four columns arranged in a two-level column index, with the aggregation functions on the inner level.

Read the original post Sign in to mark as read or skip