NVIDIA / NVIDIA/cudf

[BUG] `skipna` is non-functional for groupby scan operations

Open
#13,936 0 comments 0 reactions 0 assignees View on GitHub
bug Python
Dominant language
C++
Stars
9.8k
Forks
1.1k
Avg merge
3d 6m
Merged PRs (30d)
278

Description

**Describe the bug**
Additional parameters such as `skipna` support seems to be missing from groupby scan operations.

**Steps/Code to reproduce bug**
```python
In [1]: import cudf

In [2]: df = cudf.DataFrame({"a": 1, "b": [1, cudf.NA, 2]})
df
In [3]: df
Out[3]:
a b
0 1 1
1 1
2 1 2

In [4]: df.groupby("a").cumsum(skipna=False)
Out[4]:
b
0 1
1
2 3

In [5]: df.groupby("a").cumsum(skipna=True)
Out[5]:
b
0 1
1
2 3

In [6]: df.to_pandas().groupby("a").cumsum(skipna=False)
Out[6]:
b
0 1.0
1 NaN
2 NaN

In [7]: df.to_pandas().groupby("a").cumsum(skipna=True)
Out[7]:
b
0 1.0
1 NaN
2 3.0

```

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.