-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Open
Labels
EnhancementMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolatenp.nan, pd.NaT, pd.NA, dropna, isnull, interpolateNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further actionPeriodPeriod data typePeriod data typeTimedeltaTimedelta data typeTimedelta data type
Description
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.
burnpanck, randolf-scholz and Casper-Guo
Metadata
Metadata
Assignees
Labels
EnhancementMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolatenp.nan, pd.NaT, pd.NA, dropna, isnull, interpolateNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further actionPeriodPeriod data typePeriod data typeTimedeltaTimedelta data typeTimedelta data type