-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
Allow to select index in drop_duplicates and duplicated #9708
Comments
Typically I'll use a I'm +0 on whether we should have a dedicated method for this. |
As @TomAugspurger indicates the following are equivalent. I suppose the
|
sorry, i don’t get it. you mean i should add the second code block as exemple to the docs? |
I would add the groupby method as an alternative as its is another common way of performing this task |
to which file? |
http://pandas.pydata.org/pandas-docs/stable/indexing.html#duplicate-data |
Where is the problem to just add this functionality?
cheers |
something like this was already added: #30405 |
there’s no way to drop rows with duplicated index using
drop_duplicates
.we’d have to add a copy of the index as column, or do this:
The text was updated successfully, but these errors were encountered: