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 c6c2fad commit 00ad36cCopy full SHA for 00ad36c
pandas/core/arrays/datetimes.py
@@ -829,7 +829,11 @@ def _add_offset(self, offset: BaseOffset) -> Self:
829
micro = offset.kwds.get("microseconds", 0)
830
if micro and self.unit != "ns":
831
res_unit = "us"
832
- elif hasattr(offset, "offset") and offset.offset is not None:
+ if (
833
+ hasattr(offset, "offset")
834
+ and offset.offset is not None
835
+ and not isinstance(offset, Tick)
836
+ ):
837
offset_td = Timedelta(offset.offset)
838
if offset_td.value != 0:
839
offset_unit = offset_td.unit
0 commit comments