DEPR: deprecate integer add/sub with DTI/TDI/PI/Timestamp/Period by jbrockmendel · Pull Request #22535 · pandas-dev/pandas (original) (raw)
@jbrockmendel what was actually the rationale of deprecating it for Periods as well?
The issue that is closed by this (#21939) discusses it for DatetimeIndex/TimedeltaIndex, but I think says to keep it for PeriodIndex for now.
In any case, for PeriodIndex, this was an explicitly documented behaviour, and the documentation is now no longer up to date.
But instead of updating the docs, I think we should also reconsider the deprecation. Or at least provide a clear alternative way.
(and to be clear: I fully agree with the deprecation for DatetimeIndex / TimedeltaIndex!)