TimeGroup.agg

time.TimeGroup.agg(compartments='last', events='sum')

Aggregates the time series using the specified methods.

Paramters

compartments : Literal[“sum”, “max”, “min”, “mean”, “median”, “last”, “first”], default=“last” The method to use to aggregate compartment values. events : Literal[“sum”, “max”, “min”, “mean”, “median”, “last”, “first”], default=“sum” The method to use to aggregate event values.

Returns

TimeAggregation

The aggregation strategy object.