-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: add ignore_index to nlargest and nsmallest method #43994
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
Comments
Thanks for the issue. Lets get a +1 from a core developer before making an API changes. Saves you work if its not something that will be merged. Not sure it makes sense to add this to just |
The reason I opened this issue is that we have |
My 2 cents; I'd personally prefer |
I am not sure if that is consistent with the API design, since then you could also argue about |
xref #35860 |
I see, will close this for now, since there are discussions about deprecation and it looks it leans more in favour of actually doing so. So adding |
Describe the solution you'd like
Just like other methods where we select a subset or reorder, we have a
ignore_index
argument, to reset the index.The text was updated successfully, but these errors were encountered: