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

DEPR: Index.reindex with duplicate index #42568

Merged
merged 10 commits into from
Aug 8, 2021

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them
  • whatsnew entry

Discussed on this week's call.

@jbrockmendel jbrockmendel added the Deprecate Functionality to remove in pandas label Jul 23, 2021
@jreback jreback added this to the 1.4 milestone Aug 5, 2021
@jreback jreback added the Index Related to the Index class or subclasses label Aug 5, 2021
@@ -3888,6 +3888,15 @@ def reindex(
if self.equals(target):
indexer = None
else:
if not self.is_unique:
Copy link
Contributor

Choose a reason for hiding this comment

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

don't you need to do this on L3912? e.g. raise if those conditions are tru first. also don't we know that its unique at this point?

Copy link
Member Author

Choose a reason for hiding this comment

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

don't you need to do this on L3912? e.g. raise if those conditions are tru first

sure, will move this down

also don't we know that its unique at this point?

nope

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas Index Related to the Index class or subclasses
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants