-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Regression in DataFrameGroupBy.head() #6721
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 in master, looks correct to me and does not include the grouping coumn either)
|
As I note in my answer, the existence of |
OK, I can live with that. Closing. |
I don't know if it is worth to bikeshed over, but I think we should then at least update the docstring, so marked it as a DOC issue (https://github.com/pydata/pandas/blob/master/pandas/core/groupby.py#L790)
|
fair enough to make doc string consistent |
For this SO question I isolated a regression in
DataFrameGroupBy.head()
between 0.12.0 and 0.13.0.In 0.12.0:
which effectively returns the rows of the underlying
.obj
sorted by group. In 0.13.0:which returns the rows of the underlying
.obj
in their original order. The former is more intuitive.The text was updated successfully, but these errors were encountered: