Separate NaT values for Timedelta ("NaTD") and Period? #24983
Labels
Enhancement
Missing-data
np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Needs Discussion
Requires discussion from core team before further action
Period
Period data type
Timedelta
Timedelta data type
Separate scalar missing values Timedelta, Timestamp and Period scalars would go a long ways towards achieving predictable types with pandas. As noted in #19124, it is impossible to make some operations consistent with the current state of affairs. Most recently this came up in #24957.
This is listed in the pandas2 tracker (wesm/pandas2#74), but I think it might even be achievable for pandas 1.x? There would only be backwards compatibility issues if people are explicitly checking object identity against the
pd.NaT
scalar, which is a bit of an anti-pattern.The text was updated successfully, but these errors were encountered: