-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
BUG: Applying function on column of Groupby object with as_index=False does not select column #5764
Comments
On current master this looks ok @jorisvandenbossche after @hayd and @TomAugspurger recent changes yes?
|
We should probably add some tests before closing. (I'm sure this came up recently on SO too.) |
yep |
This is now better in current master after #7000, [7] is going to be addressed in #5755
|
@jorisvandenbossche the behavior on master for the |
Selecting a column of the GroupBy object, still returns all columns:
So an applied function with
apply
is applied on all columns:With
as_index=True
it works as expected:A more elaborate example where this turned out:
But if I don't want the X, Y, Z in the index:
return an error as
x
is a dataframe.The text was updated successfully, but these errors were encountered: