-
Notifications
You must be signed in to change notification settings - Fork 86
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]: Filter in agg context #1176
Comments
thanks @IsaiasGutierrezCruz for the report!
I think it would be tricky to do in the general case, at least for pandas/pyarrow/dask. but in #299 there is a suggestion to at least support more cases than we currently do |
MarcoGorelli
added
low priority
bug: unnecessary exception
and removed
bug: incorrect result
Something isn't working
labels
Oct 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When the filter expression is used within an
agg
context using a pandas dataframe, the following exception is raised:I was also evaluating the use of a when-otherwise expression to emulate the behavior of filtering, but anonymous expressions are not supported in the agg context. Is there a plan to support this kind of expression in that context? c:
Steps or code to reproduce the bug
Expected results
Actual results
ValueError: Length of values (1) does not match length of index (0)
Please run narwhals.show_version() and enter the output below.
Relevant log output
The text was updated successfully, but these errors were encountered: