DEPR: deprecate units 'w', 'd', 'MS', 'US', 'NS' for Timedelta in favor of 'W', 'D', 'ms', 'us', 'ns' by natmokval · Pull Request #59051 · pandas-dev/pandas (original) (raw)

Nice one, thanks @natmokval!

Just one question - do we still need c_DEPR_ABBREVS, or can c_DEPR_UNITS be used in its place?

Thanks @MarcoGorelli for reviewing this PR. I think we need c_DEPR_ABBREVS, because so far it's allowed to use lowercase strings w, d, b and c for offsets/period.

After deprecation lowercase strings w, d, b and c denoting frequencies in Week, Day, BusinessDay and CustomBusinessDay classes (PR #58998 is ready for review) we can use c_DEPR_UNITS instead c_DEPR_ABBREVS.