Skip to content
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

ENH: implement _should_compare/_is_comparable_dtype for all Index subclasses #38251

Merged
merged 2 commits into from
Dec 4, 2020

Conversation

jbrockmendel
Copy link
Member

Fixes some problems in get_indexer_non_unique that AFAICT are not actually causing any problems.

Categorical kludge is needed because of #38240.

@jreback jreback added Index Related to the Index class or subclasses Refactor Internal refactoring of code labels Dec 4, 2020
@jreback jreback added this to the 1.2 milestone Dec 4, 2020
@jreback jreback merged commit 9ea1031 into pandas-dev:master Dec 4, 2020
@jreback
Copy link
Contributor

jreback commented Dec 4, 2020

de-duplicate away!

tm.assert_numpy_array_equal(result[0], expected)
tm.assert_numpy_array_equal(result[1], expected)
tm.assert_numpy_array_equal(result[1], missing)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason for changing the behaviour here?
Did you consider this a bug?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. As mentioned in the OP, as far as i can tell it isnt actually affecting anything

@jbrockmendel jbrockmendel deleted the ref-should_compare branch December 4, 2020 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Index Related to the Index class or subclasses Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants