File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 4646 tzconversion ,
4747)
4848from pandas ._libs .tslibs .dtypes import abbrev_to_npy_unit
49+ from pandas ._libs .tslibs .offsets import DateOffset
4950from pandas .errors import PerformanceWarning
5051from pandas .util ._exceptions import find_stack_level
5152from pandas .util ._validators import validate_inclusive
7172
7273from pandas .tseries .frequencies import get_period_alias
7374from pandas .tseries .offsets import (
74- BusinessHour ,
75- CustomBusinessDay ,
7675 Day ,
7776 Tick ,
7877)
@@ -827,7 +826,7 @@ def _add_offset(self, offset: BaseOffset) -> Self:
827826 ]
828827 res_unit = self .unit
829828 if hasattr (offset , "offset" ) and offset .offset is not None :
830- if isinstance (offset , ( CustomBusinessDay , BusinessHour ) ):
829+ if not isinstance (offset , DateOffset ):
831830 offset_td = Timedelta (offset .offset )
832831 if offset_td .value != 0 :
833832 offset_unit = offset_td .unit
You can’t perform that action at this time.
0 commit comments