-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Filter of grouped dataframe raises ValueError #4447
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
good catch. Looking into this. |
So far, I've found that the proximate problem is with the slow_path here, but fixing it for this case causes issues for other tests. Working on it... |
The problem arises with
|
@danielballan you prob just need to deal with different return types/shapes from the filtered function; this is BTD (bug test driven!) |
@danielballan fyi... # 4657 will partially fix this (sort of) as it looks at the return value from the filter in a better way |
@danielballan would be nice to fix for 0.13 |
I cannot reproduce the error. I think #4657 changed the path taken, so now the shape of the
If you can point me toward an extant problem, I will follow up. If not, close? |
hmm....maybe add some test cases that return different things in the function to try to break it: e.g. scalar, series, frame, raise various exceptions, etc |
and then can close this issue |
OK, sounds good. |
@danielballan tests for this? |
Within a week should be no problem. (Not exactly related, but is there a target for 0.13?) |
gr8! not exactly sure of target date...still lots of issues to get thru...few weeks maybe |
TST: Groupby filter tests involved len, closing #4447
see also #4527
When trying to filter a grouped dataframe with more than 2 columns raises an ValueError:
The text was updated successfully, but these errors were encountered: