-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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
BUG: comparing 'NaT' in series with series returns True #9005
Comments
hmm that looks wrong for series; yep should compare as |
Greater than does return False:
|
yep because its comparing the actual value (and not using `_maybe_mask_results()`` (method) after |
Hey @jreback, this bug just bit me in 0.18.0. Just pinging to put back on the radar. |
@cfperez pull-requests are welcome here. |
This is in 0.18.0; all of which looks correct, e.g. comparison with NaT all return False
@cfperez are [4] and [5] not returning like the above? |
@sinhrks has been fixing lots of these NaT issues. so this looks fixed. just need confirming tests. |
I'll see what I can do! Working on #10668 first. On Wed, 6 Apr 2016, 9:29 AM Jeff Reback [email protected] wrote:
|
@cfperez gr8!. |
xref #12877 (test on Series & DataFrame)
When having a 'NaT' in a datetime series and comparing this to a datetime series, the comparison with NaT returns True (and shouldn't comparisons with NA not always return False?) Comparing it with a scalar does return False:
Original from http://stackoverflow.com/questions/27305324/pandas-comparison-with-variable-number-of-columns/27305661#27305661
The text was updated successfully, but these errors were encountered: