-
- Notifications
You must be signed in to change notification settings - Fork 19.4k
Closed
Labels
BugMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolatenp.nan, pd.NaT, pd.NA, dropna, isnull, interpolateNumeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operationsTimedeltaTimedelta data typeTimedelta data type
Description
A test failure that only showed up on appveyor: https://ci.appveyor.com/project/pandas-dev/pandas/build/1.0.9563/job/b47phinjg410eiap
pd.Timedelta(hours=2) - np.timedelta64('NaT') > __sub__ = _binary_op_method_timedeltalike(lambda x, y: x - y, '__sub__') E TypeError: Cannot cast ufunc subtract input from dtype('<m8') to dtype('<m8[ns]') with casting rule 'same_kind' On OSX this goes through without a hitch:
>>> pd.Timedelta(hours=2) - np.timedelta64(2) numpy.timedelta64(7199999999998,'ns') In this case the appveyor is probably right to raise instead of assuming nanos.
Metadata
Metadata
Assignees
Labels
BugMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolatenp.nan, pd.NaT, pd.NA, dropna, isnull, interpolateNumeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operationsTimedeltaTimedelta data typeTimedelta data type