BUG: pandas.tseries.offsets.DateOffset behavior changes · Issue #45890 · pandas-dev/pandas (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
Pandas version checks
- I have checked that this issue has not already been reported.
- I have confirmed this bug exists on the latest version of pandas.
- I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
import pandas as pd
s = pd.Series(pd.to_datetime('2022-02-04')) s = s + pd.DateOffset(1) print(s)
Issue Description
This code snippet produces a series with a date. In Pandas 1.3.5 the date is 2022-02-05. On the other hand in Pandas 1.4.0 the date is abruptly changed to 2022-02-04 which means a API breaking change which is against the Pandas version policy has happened.
Expected Behavior
This code snippet should produce a series with the date is 2022-02-05.
Installed Versions
1.4.0