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 a68826d commit eb23db0Copy full SHA for eb23db0
pandas/core/indexes/datetimelike.py
@@ -709,7 +709,6 @@ def __sub__(self, other):
709
# Array/Index of DateOffset objects
710
return self._sub_offset_array(other)
711
elif isinstance(self, TimedeltaIndex) and isinstance(other, Index):
712
- assert not is_timedelta64_dtype(other)
713
# We checked above for timedelta64_dtype(other) so this
714
# must be invalid.
715
raise TypeError("cannot subtract TimedeltaIndex and {typ}"
0 commit comments