Closed
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