-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG/ENH: groupby head returns empty result for negative n #9214
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
this seems like a strange way to express what you're showing here. why wouldn't one use |
I wanted all but the last one. |
I found it a bit strange that it works like this. The docstring of
|
so this is how its implemented. it does look odd, but follows slicing semantics. |
I realized last night that I could, and should, just use iloc. I'm ok with closing this as not a priority.
|
I think we should aim for consistency with |
I didn't realize this was a thing when implementing this, sorry. |
Unaware that this one from 2015 existed, I independently just filed #30192. Its title and body make clear that it's suggesting the undocumented behavior is useful and should be documented. |
Closing in favor of #30192 |
More drive-by reports. I'll try to close some of these issues sometime...
The text was updated successfully, but these errors were encountered: