NVIDIA / NVIDIA/cudf

[FEA] groupby-transform with `'diff'`

Open
#18,160 0 comments 0 reactions 0 assignees View on GitHub
feature request Narwhals 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.**
```python
df = cudf.DataFrame({'a': [1,1,2], 'b': [4,5,6]})
df.groupby('a')['b'].transform('diff')
```

**Additional context**

So we can support `nw.col('b').diff().over('a')` in Narwhals

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.