Skip to content

Commit

Permalink
code sample for pandas-dev#45890
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjayhawkins committed Feb 10, 2022
1 parent f47bd96 commit 53cd990
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bisect/45890.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# BUG: pandas.tseries.offsets.DateOffset behavior changes #45890

import pandas as pd

print(pd.__version__)

s = pd.Series(pd.to_datetime("2022-02-04"))
s = s + pd.DateOffset(1)
print(s)

expected = pd.Series(pd.to_datetime("2022-02-05"))
pd.testing.assert_series_equal(s, expected)

0 comments on commit 53cd990

Please sign in to comment.