BUG: pandas.tseries.offsets.DateOffset behavior changes · Issue #45890 · pandas-dev/pandas (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@iajoiner

Description

@iajoiner

Pandas version checks

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