", line 1, in TypeError: unsupported operand type(s) f...">

np.ndarray[object] - Timedelta raises · Issue #21980 · pandas-dev/pandas (original) (raw)

arr = np.array([pd.Timestamp.now(), pd.Timedelta('2D')])

>>> arr - pd.Timedelta('1D')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for -: 'numpy.ndarray' and 'Timedelta'

It should attempt to operate element-wise.