-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Modify get_indexer_non_unique to account for nan keys #52655
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
@@ -360,6 +360,8 @@ cdef class IndexEngine: | |||
values = self.values | |||
stargets = set(targets) | |||
|
|||
na_in_stargets = any([checknull(t) for t in stargets]) |
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.
na_in_stargets = any([checknull(t) for t in stargets]) | |
na_in_stargets = any(checknull(t) for t in stargets) |
tm.assert_numpy_array_equal(np.array([0, 1, 3], dtype=np.intp), indexes) | ||
tm.assert_numpy_array_equal(np.array([], dtype=np.intp), missing) | ||
|
||
def test_get_indexer_non_unique_float_index(self): |
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.
Could you pytest.mark.parameterize
this test with the one above?
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.
Also needs a whatsnew entry in v2.1.0.rst
This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this. |
Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen. |
KeyError: '[nan] not in index'
when usingnan
to index #52234doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.