File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
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
5049from pandas .errors import PerformanceWarning
5150from pandas .util ._exceptions import find_stack_level
5251from pandas .util ._validators import validate_inclusive
7271
7372from pandas .tseries .frequencies import get_period_alias
7473from pandas .tseries .offsets import (
74+ DateOffset as TSeriesDateOffset ,
7575 Day ,
7676 Tick ,
7777)
@@ -826,7 +826,7 @@ def _add_offset(self, offset: BaseOffset) -> Self:
826826 ]
827827 res_unit = self .unit
828828 if hasattr (offset , "offset" ) and offset .offset is not None :
829- if not isinstance (offset , DateOffset ):
829+ if not isinstance (offset , TSeriesDateOffset ):
830830 offset_td = Timedelta (offset .offset )
831831 if offset_td .value != 0 :
832832 offset_unit = offset_td .unit
You can’t perform that action at this time.
0 commit comments