You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
rwijtvliet
changed the title
Aggregation to non-calendar periods
[enhancement] Aggregation to non-calendar periods
Nov 15, 2023
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.The text was updated successfully, but these errors were encountered: