We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87cbc42 commit e4b91c4Copy full SHA for e4b91c4
pandas/core/arrays/datetimes.py
@@ -72,6 +72,8 @@
72
from pandas.tseries.frequencies import get_period_alias
73
from pandas.tseries.offsets import (
74
BusinessDay,
75
+ BusinessHour,
76
+ CustomBusinessHour,
77
DateOffset,
78
Day,
79
Tick,
@@ -838,6 +840,8 @@ def _add_offset(self, offset: BaseOffset) -> Self:
838
840
and offset.offset is not None
839
841
and not isinstance(offset, Tick)
842
and type(offset) is not BusinessDay
843
+ and type(offset) is not BusinessHour
844
+ and type(offset) is not CustomBusinessHour
845
):
846
offset_td = Timedelta(offset.offset)
847
if offset_td.value != 0:
0 commit comments