-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Fix .isin Considers "1" and 1 equal #34267
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
Conversation
…mparing a int df with a string value on isin comparation
…unc, related with issue 34125
pandas/tests/test_algos.py
Outdated
@@ -2374,3 +2374,30 @@ def test_index(self): | |||
dtype="timedelta64[ns]", | |||
) | |||
tm.assert_series_equal(algos.mode(idx), exp) | |||
|
|||
@pytest.mark.xfail(reason="problem related with issue #34125") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you put these in the right class, Isin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course, sorry about that, I didn’t realize that this class exists, my bad! But everything looks good now!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it right?
Some fix just that i forgot to delete some code
thanks @gabrielvf1 |
So this one just has the tests, but the bug is still present on master? |
Yes, I tried to solve but the way I made it was not right enough |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff