-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
groupby(group_keys=True) ignored when apply returns unsliced data #8467
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
has nothing to do with Has to do with whether you are returning something that is exactly identical or not
Impossible to disambiguate. Nor even sure why you would. What are you actually trying to do? |
Actually. I asked why The docstring for group_keys is: group_keys : boolean, default True
When calling apply, add group keys to index to identify pieces What I'm trying to do is to get the group keys included in the index, when I call apply. I already have a workaround, It just seemed like a bug. If you're sure this is all just fine, feel free to close. |
👍 @jreback This went from impossible and useless to bug fixed in record time, my whiplash says to tell you: Thanks! |
hahah np I may argue if their is a bug |
I ran into this unexplained behaviour with
groupby
when usinggroup_keys=True
(the default),it's not clear why using
x
vs.x[:]
causes thegroup_keys
argument to be ignored.The text was updated successfully, but these errors were encountered: