Description
Research
-
I have searched the [pandas] tag on StackOverflow for similar questions.
-
I have asked my usage related question on StackOverflow.
Link to question on StackOverflow
NA
Question about pandas
Background
There have been several issues raised related to the Period
types, such as:
And the latter deprecation of the business-day period has already been implemented.
This is of course related to the enhancement allowing non-ns units to datetimes, see e.g.:
- API/DES: Non-Nanosecond Tracker #46587
- https://numpy.org/doc/stable/reference/arrays.datetime.html#datetime-units
Questions
-
Given the fact that deprecations of
Period
types have already begun, it would be useful to understand what the expected roadmap forPeriod
is. Is it expected that it will be removed as suggested in DEPR: Period, PeriodFoo #54235? Is there a plan for how to move forward on the "sticking points" listed there (especially the missing units: Week-with anchor, quarter, Year-with-anchor)? -
The current deprecation of business day periods in DEPR: Period[B] #53446 now requires bifurcation of code from
Period
toTimestamp
in the special case of business days - if you are usingPeriod
s, you can't wholesale switch toTimestamp
s yet (at least if you have e.g. Quarters), but you also can no longer stick with justPeriod
s.
Tentative request
To me, it would make sense to revert the deprecation of the BDay Period
dtype until there is a more comprehensive roadmap for Period
types and a path to make a more wholesale switch. But my apologies if I missed something fundamental here about why that deprecation is important in itself.