Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
groupby(group_keys=True) ignored when apply returns unsliced data #8467
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? |
jreback
added Groupby Usage Question
labels
Oct 5, 2014
kay1793
commented
Oct 5, 2014
|
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 piecesWhat 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
added this to the
0.15.0
milestone
Oct 6, 2014
jreback
referenced
this issue
Oct 6, 2014
Merged
BUG: Bug in groupby .apply with a non-affecting mutation in the function (GH8467) #8484
jreback
closed this
in #8484
Oct 6, 2014
kay1793
commented
Oct 6, 2014
|
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 |
kay1793 commentedOct 5, 2014
I ran into this unexplained behaviour with
groupbywhen usinggroup_keys=True(the default),it's not clear why using
xvs.x[:]causes thegroup_keysargument to be ignored.