NVIDIA / NVIDIA/cudf

[FEA] Support groupby collect agg on struct columns

Open
#8,520 9 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.