Currently, the aggregation for PfLine and PfState instances is done with .asfreq(freq), with the parameter freq being "MS", "QS", or "'AS'", to aggregate to monthly, quarterly, or yearly values.
What is not yet possible, is to aggregate to e.g. business years (let's say starting at April 1), or to time periods of e.g. 15 months.
The following proposal (up for discussion):
Allow not only "AS", but also e.g. "AS-APR" as value for freq. This would aggregate the values between April 1 0:00 (incl) and April 1 0:00 (excl) the next year. Compare:
For more exotic aggregations, allow "all" as value for freq. This would aggregate over all time periods in the PfLine or PfState. Here, the implications are a bit more difficult, as this is not supported out of the box by pandas.
Currently, the aggregation for PfLine and PfState instances is done with
.asfreq(freq)
, with the parameterfreq
being"MS"
,"QS"
, or "'AS'", to aggregate to monthly, quarterly, or yearly values.What is not yet possible, is to aggregate to e.g. business years (let's say starting at April 1), or to time periods of e.g. 15 months.
The following proposal (up for discussion):
"AS"
, but also e.g."AS-APR"
as value forfreq
. This would aggregate the values between April 1 0:00 (incl) and April 1 0:00 (excl) the next year. Compare:"all"
as value forfreq
. This would aggregate over all time periods in the PfLine or PfState. Here, the implications are a bit more difficult, as this is not supported out of the box by pandas.