[FEA] Support groupby collect agg on struct columns
Open
feature request
Python
- Dominant language
- C++
- Stars
- 9.8k
- Forks
- 1.1k
- Avg merge
- 3d 6m
- Merged PRs (30d)
- 278
Description
**Is your feature request related to a problem? Please describe.**
Ability to create a list of struct columns using the `collect` agg via groupby
**Describe the solution you'd like**
```python
df = cudf.DataFrame(
{
'a':['aa','aa','cc'],
'd':[{"b": '1', "c": "one"}, {"b": '2', "c": "two"}, {"b": '3', "c": "one"}]
}
)
df.groupby('a').collect()
d
a
aa [{'b': '1', 'c': 'one'}, {'b': '2', 'c': 'two'}]
cc [{'b': '3', 'c': 'one'}]
```
**Describe alternatives you've considered**
N/A
**Additional context**
Add any other context, code examples, or references to existing implementations about the feature request here.
Contributor guide
Assessment
This issue has not been assessed yet.