-
-
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
Many groupby tests depend on a bug in DataFrameGroupBy.apply #28549
Comments
I think worth double checking the comprehensive functionality of Not sure off the top of my head how that is covered in tests but would be great if you can take a look while reviewing all of this |
Not sure how much this overlaps, but I'm noticing in |
Closing as a duplicate of #7155. |
Discovered while fixing an issue in #28541
A large number of tests relating to
DataFrameGroupBy.apply
depend on a bug inapply
where the grouped column is not removed from the returned DataFrame.Here are some examples:
test_apply_chunk_view
test_apply_multiindex_fail
There are around ~20 cases of this.
In general, they expect the result of something like this:
To include the "key" column in the result, which should not be the case.
The underlying issue with
apply
is a straightforward fix, all that needs to be done is change this return to use the_group_selection_context
, but the PR will have to include updates to many tests.The text was updated successfully, but these errors were encountered: