-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
groupby for list and struct type columns #4175
Comments
We do not support grouping by a column of type list. I think we should improve the error message on that. |
Thank you very much for the quick answer! |
@ritchie46 what do you think should be the error that comes out? |
I think a For structs we could temporarily unnest -> do the groupby -> and nest again. |
Just in case anybody else stumbles upon this, the workaround I am now using is to convert to "str". Not ideal, but does the trick.
|
Thank you for this absolutely wonderful library!
I'm afraid I hit a snag. What I tried to do was to group by a nested data type, as in:
This results in a
not implemented
panic.I'm curious as to whether this is simply not implemented yet or whether this would contradict the underlying philosophy of polars.
Best regards
Peter
The text was updated successfully, but these errors were encountered: