-
[x] I have checked that this issue has not already been reported.
-
[x] I have confirmed this bug exists on the latest version of pandas.
-
[ ] (optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
import pandas
from pandas.tseries.frequencies import to_offset
pandas.Timestamp('2000-01-10 10:00') + to_offset('BH') * 0
Problem description
This appears to be a regression in behavior as pandas 0.23.4 did not experience this behavior. I do not know exactly when this was introduced, but the result is Timestamp('2000-01-11 09:00')
, which is unexpected and incorrect functionality. Additionally, this behavior does not repro for hourly data, for instance:
pandas.Timestamp('2000-01-10 10:00') + to_offset('H') * 0
Expected Output
Timestamp('2000-01-10 10:00')
Output of pd.show_versions()
Comment From: mroeschke
This looks to be fixed in main (and I believe we have tests for this now) so closing