GroupedData API#

GroupedData objects are returned by groupby call: Dataset.groupby().

Constructor#

grouped_data.GroupedData

Represents a grouped dataset created by calling Dataset.groupby().

Computations / Descriptive Stats#

grouped_data.GroupedData.count

Compute count aggregation.

grouped_data.GroupedData.sum

Compute grouped sum aggregation.

grouped_data.GroupedData.min

Compute grouped min aggregation.

grouped_data.GroupedData.max

Compute grouped max aggregation.

grouped_data.GroupedData.mean

Compute grouped mean aggregation.

grouped_data.GroupedData.std

Compute grouped standard deviation aggregation.

Function Application#

grouped_data.GroupedData.aggregate

Implements an accumulator-based aggregation.

grouped_data.GroupedData.map_groups

Apply the given function to each group of records of this dataset.

Aggregate Function#

aggregate.AggregateFn

Defines an aggregate function in the accumulator style.