-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
groupby filtering is missing some groups #7870
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
I'm not sure this is what If I'm right, then the bug is that this isn't tripping |
I'll repost how I thought it might've worked
|
@dsm054 by groups do you mean |
I agree with @dsm054 here. This should return the SAME df, (as 'best' is in EACH group). The bug is that the complete groups are not being returned (because the filter function is tricking the detector). |
I mean the subframes that The example in the function itself is |
well then this is very weird :) |
pr coming |
Just to be clear, I'm not sure I agree with @jreback that the right thing to do is to return the same |
Posted on ML before this. I think raise is the correct course of action here. Filter is for removing/including entire groups. Picking all or any (or first!) of the boolean Series would be strange IMO...
|
Very insightful comments here. Much appreciated. I'm 👍 on raising an error, which I believe version 0.12 did. |
I concur |
Okay, this mainly had to do with the
gives two different unrelated results and there were some hacks around trying to figure out which one was "correct". i gutted all that code and now just call the fast path, we'll see what happens on travis but this doesn't break anything locally. |
I went with raise for the same reason that |
I brought this up on the mailing list. @cpcloud modified my example into very concise sample showing expected and resulting output:
The text was updated successfully, but these errors were encountered: