(Datetime|Timedelta)Index +/- np.nan #19274
Labels
Bug
Datetime
Datetime data dtype
Missing-data
np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Timedelta
Timedelta data type
Milestone
AFAICT this is now the last thing standing between us and getting rid of ops._Op and ops._TimeOp. Series ops currently case np.nan to pd.NaT whereas Index ops treat it as a float and raise a TypeError.
Note also that the behavior of Series[datetime64] has changed since 0.22.0:
0.22.0:
ATM
ser - np.nan
also raises, since that now delegates to the DatetimeIndex op.The text was updated successfully, but these errors were encountered: