MMMIDataWrapper.aggregate_time#

MMMIDataWrapper.aggregate_time(period, method='sum')[source]#

Aggregate data over time periods.

Delegates to standalone aggregate_idata_time utility function.

Parameters:
period{“weekly”, “monthly”, “quarterly”, “yearly”, “all_time”}

Time period to aggregate to

method{“sum”, “mean”}, default “sum”

Aggregation method

Returns:
MMMIDataWrapper

New wrapper with aggregated idata