[BUG] Assignment of string list to column doesn't work
Open
bug
Python
- Dominant language
- C++
- Stars
- 9.8k
- Forks
- 1.1k
- Avg merge
- 3d 6m
- Merged PRs (30d)
- 278
Description
**Describe the bug**
This does not work:
df.loc[df['column'] =='value', 'column2'] = ['0','1']
TypeError: Implicit conversion to a host NumPy array via __array__ is not allowed, To explicitly construct a GPU matrix, consider using .to_cupy()
To explicitly construct a host matrix, consider using .to_numpy().
Integers do work:
df.loc[df['column']=='value', 'column2'] = [0,1]
Both work in pandas.
Rapids 22.08
Ubuntu 20
Contributor guide
Assessment
This issue has not been assessed yet.