Closed
Description
From the dev-chat #22274 (comment) and a rehash of #20633
Conclusion:
- Make the offset alias
'D'
andoffsets.Day
always operate as a calendar day.
Technical implication:
Day
will need to subclassDateOffset
instead ofTick
Operations that will change behavior (may be missing some):
Day
arithmetic with Timestamp/DTI/datetime Series/DataFrameDatetimeIndex.shift
- Any use of
'D'
with Timedelta/TDI/timedelta Series/DataFrame - Tick arithmetic with
Day
Deprecation Procedures (could use some input here)
- None
- None
DeprecationWarning
that users should use'24 H'
instead of'D'
and allow users to use'D'
for v0.24.0- None
cc @pandas-dev/pandas-core