Skip to content

Commit e4b91c4

Browse files
committed
BUG: Fix dt64[non_nano] + offset rounding
1 parent 87cbc42 commit e4b91c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/core/arrays/datetimes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@
7272
from pandas.tseries.frequencies import get_period_alias
7373
from pandas.tseries.offsets import (
7474
BusinessDay,
75+
BusinessHour,
76+
CustomBusinessHour,
7577
DateOffset,
7678
Day,
7779
Tick,
@@ -838,6 +840,8 @@ def _add_offset(self, offset: BaseOffset) -> Self:
838840
and offset.offset is not None
839841
and not isinstance(offset, Tick)
840842
and type(offset) is not BusinessDay
843+
and type(offset) is not BusinessHour
844+
and type(offset) is not CustomBusinessHour
841845
):
842846
offset_td = Timedelta(offset.offset)
843847
if offset_td.value != 0:

0 commit comments

Comments
 (0)