-
Notifications
You must be signed in to change notification settings - Fork 930
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
[QST] list-aggregation for struct columns #11765
Labels
improvement
Improvement / enhancement to an existing function
Python
Affects Python cuDF API.
question
Further information is requested
Comments
I guess there are two issues here:
From cursory examination, it appears that Aside: your example requested output is not quite correct (the row corresponding to the grouping of |
See also #11907 |
wence-
added a commit
to wence-/cudf
that referenced
this issue
Dec 2, 2022
As usual when returning from libcudf, we need to reconstruct a struct dtype with appropriate labels. For groupby.agg(list) this can be done by matching on the element_type of the result column and reconstructing with a new list dtype with a leaf from the original column. Closes rapidsai#11765.
3 tasks
wence-
added a commit
to wence-/cudf
that referenced
this issue
Jan 17, 2023
As usual when returning from libcudf, we need to reconstruct a struct dtype with appropriate labels. For groupby.agg(list) this can be done by matching on the element_type of the result column and reconstructing with a new list dtype with a leaf from the original column. Closes rapidsai#11765.
rapids-bot bot
pushed a commit
that referenced
this issue
Jan 23, 2023
As usual when returning from libcudf, we need to reconstruct a struct dtype with appropriate labels. For groupby.agg(list) this can be done by matching on the element_type of the result column and reconstructing with a new list dtype with a leaf from the original column. Closes #11765 Closes #11907 Authors: - Lawrence Mitchell (https://github.com/wence-) Approvers: - Ashwin Srinath (https://github.com/shwina) URL: #12290
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
improvement
Improvement / enhancement to an existing function
Python
Affects Python cuDF API.
question
Further information is requested
Running the following code in
cudf
:the
gdf
dataframe will look like:At this point I need to run a
groupby.agg()
operation, like:But the field
new
get's silently ignored - I guess because of the followingData Error
:which can be triggered by:
Is there an alternative way to get around this problem and create a dataframe that looks like:
The text was updated successfully, but these errors were encountered: