Python-Polars: group_by a column have the remaining columns be combined into a struct field?
I have not found a way to group_by() a column and have a struct field for the new column.Here is a snippet of the dataframe:
Python – Polars: How can I group_by a column and have the remaining columns be combined into a struct field based off the group_by?
I have not found a way to group_by() a column and have a struct field for the new column.Here is a snippet of the dataframe: