-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API/BUG: pd.NA == pd.NaT returns False #34104
Comments
The same is true for any datetime-like scalar, not just NaT:
I don't think this is intentional, but somewhat "knowingly ignored for now", at least going from this comment: #30245 (comment) (although that specific comment was about ufuncs, but for scalar operations it's the same logic). Right now, we only handle a few specific scalar types (and for other scalars, it defers by returning pandas/pandas/_libs/missing.pyx Lines 287 to 299 in 44e3c40
So either we need to handle more scalar types here, or our scalar types need to handle NA. |
i think the relevant Timestamp/NaT methods have been updated so they will return NotImplemented when operating against pd.NA, so it would now be easy to change the behavior if desired |
@jorisvandenbossche I expected this to return pd.NA. Is this intentional?
The text was updated successfully, but these errors were encountered: