Skip to content

CLN: avoid using internals methods for DataFrame.drop_duplicates #33075

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

Merged
merged 3 commits into from
Mar 29, 2020

Conversation

jbrockmendel
Copy link
Member

No description provided.

new_data = self._data.take(inds)
result = self[-duplicated]
if ignore_index:
result.index = range(len(result))
Copy link
Member

Choose a reason for hiding this comment

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

Are we moving away from ibase. default_index?

Copy link
Member Author

Choose a reason for hiding this comment

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

good point, i should stick with the existing pattern, will update

@jreback jreback added the Clean label Mar 29, 2020
@jreback jreback added this to the 1.1 milestone Mar 29, 2020
@jreback jreback merged commit 39e3412 into pandas-dev:master Mar 29, 2020
@jbrockmendel jbrockmendel deleted the no-data-drop_duplicates branch March 29, 2020 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants