Skip to content

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!

missing = np.arange(3, dtype=np.intp)
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

3 participants