NVIDIA / NVIDIA/cudf

[BUG] Global variables not accessible/modifiable when falling back to slow path

Open
#14,482 0 comments 0 reactions 0 assignees View on GitHub
0 - Backlog bug cudf.pandas Python
Dominant language
C++
Stars
9.8k
Forks
1.1k
Avg merge
3d 6m
Merged PRs (30d)
278

Description

**Describe the bug**
```python
In [1]: %load_ext cudf.pandas

In [2]: lst = []

In [3]: def udf(x):
...: lst.append(x)
...: return x
...:

# "ValueError: user defined function compilation failed." in cudf
In [4]: pd.Series(range(2)).apply(udf)
Out[4]:
0 0
1 1
dtype: int64

In [5]: lst
Out[5]: []

In [6]: import pandas

In [7]: pandas.Series(range(2)).apply(udf)
Out[7]:
0 0
1 1
dtype: int64

In [8]: lst
Out[8]: [0, 1]
```

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.