-
Notifications
You must be signed in to change notification settings - Fork 590
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: Reduction UDF returning np.array hits error when used in grouped aggregation
#2770
BUG: Reduction UDF returning np.array hits error when used in grouped aggregation
#2770
Conversation
ibis/backends/pandas/aggcontext.py
Outdated
| # Using `apply` as a workaround for the fact that | ||
| # `SeriesGroupBy.agg` does not allow np.arrays to be returned | ||
| # from UDFs. | ||
| return grouped_data.apply(wrap_for_agg(function, args, kwargs)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In what case we want to exercise the "else" branch here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is when exercised when doing an ungrouped aggregation, e.g. my_arr_col.collect()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a release note as well
Closes #2768