You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Timedelta.__floordiv__ and __rfloordiv__ begin with:
if hasattr(other, 'dtype'):
# work with i8
other = other.astype('m8[ns]').astype('i8')
I think this is a historical artifact from early numpy versions, because in core.ops there is a comment:
# time delta division -> unit less
# integer gets converted to timedelta in np < 1.6
if ((self.is_timedelta_lhs and self.is_timedelta_rhs) and
not self.is_integer_rhs and not self.is_integer_lhs and
self.name in ('__div__', '__truediv__')):
Before I try to fix Timedelta.__floordiv__ can someone knowledgeable weight in on why all dtypes are being converted to i8?
The text was updated successfully, but these errors were encountered:
Timedelta.__floordiv__
and__rfloordiv__
begin with:I think this is a historical artifact from early numpy versions, because in core.ops there is a comment:
Before I try to fix
Timedelta.__floordiv__
can someone knowledgeable weight in on why all dtypes are being converted to i8?The text was updated successfully, but these errors were encountered: