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
In [1]: pd.__version__
Out[1]: '0.20.3'
In [2]: i = pd.timedelta_range('1 day', periods=3)
In [3]: i / i
TypeError: cannot evaluate a numeric op with a non-numeric dtype
master
In [1]: pd.__version__
Out[1]: '0.24.0.dev0+550.g70c9003c9'
In [2]: i = pd.timedelta_range('1 day', periods=3)
In [3]: i / i
TypeError: unsupported operand type(s) for /: 'TimedeltaIndex' and 'TimedeltaIndex'
In [4]: i / 2
Out[4]: TimedeltaIndex(['0 days 12:00:00', '1 days 00:00:00', '1 days 12:00:00'], dtype='timedelta64[ns]', freq='12H')
In [5]: i / pd.Timedelta('1 day')
Out[5]: Float64Index([1.0, 2.0, 3.0], dtype='float64')
# conversion then op works
In [8]: i.astype('i8') / i.astype('i8')
Out[8]: Float64Index([1.0, 1.0, 1.0], dtype='float64')
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
master
The text was updated successfully, but these errors were encountered: