-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DataFrame.equals false negatives with dtype=object #8437
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
Comments
I have an example that isn't fixed by replacing |
see #5283 I think that here: https://github.com/pydata/pandas/blob/master/pandas/core/internals.py#L1058 should use |
cc @unutbu |
actually their is a comment here that I don't recall!
|
Figured out the problem with the other (unposted) cases-- one of them was chained assignment (arrrg!) and the other was comparing an object series with a bool series. But the test in the OP still fails. |
@ischwabacher see my comment above, I think this is pretty trivial to fix, just change the |
Mea culpa. I've made a PR: #8443 |
Awesome, thanks! |
closd by #8443 |
I still don't have a good enough grasp on the internals to go diving for this one quickly, but here's the observed behavior:
Here the 4x4 square in the upper left should be
True
. (temp[4:6]
are different because insertingFalse
into afloat64
array or vice-versa coercesFalse
into0.0
; this is inconvenient when attempting to use the array for boolean indexing.)The text was updated successfully, but these errors were encountered: