You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Clipping a DataFrame or Series using ints causes a cudf Failure because it won't handle the different dtypes (int and float)
Steps/Code to reproduce bug
data = cudf.Series([-0.43, 0.1234, 1.5, -1.31])
data.clip(0, 1)
...
File "cudf/_lib/replace.pyx", line 216, in cudf._lib.replace.clip
File "cudf/_lib/replace.pyx", line 198, in cudf._lib.replace.clamp
RuntimeError: cuDF failure at: ../src/replace/clamp.cu:250: mismatching types of scalar and input
Describe the bug
Clipping a DataFrame or Series using ints causes a cudf Failure because it won't handle the different dtypes (int and float)
Steps/Code to reproduce bug
Meanwhile the following will work
Expected behavior
data.clip(0, 1)
Out:
0 0.0000
1 0.1234
2 1.0000
3 0.0000
dtype: float64
will coerce the integer upper/lower bounds to the float data.
Environment overview (please complete the following information)
conda install rapids-0.19
The text was updated successfully, but these errors were encountered: