In [1]: import cudf
In [2]: print(cudf.Series([1, 2, 3]))
TypeError Traceback (most recent call last)
File ~/miniconda3/envs/wsl_py310/lib/python3.10/site-packages/cudf/core/column/column.py:2306, in as_column(arbitrary, nan_as_null, dtype, length)
2304 try:
2305 data = as_column(
→ 2306 memoryview(arbitrary), dtype=dtype, nan_as_null=nan_as_null
2307 )
2308 except TypeError:
TypeError: memoryview: a bytes-like object is required, not ‘list’
During handling of the above exception, another exception occurred:
RuntimeError Traceback (most recent call last)
Cell In[2], line 1
----> 1 print(cudf.Series([1, 2, 3]))
File ~/miniconda3/envs/wsl_py310/lib/python3.10/site-packages/nvtx/nvtx.py:115, in annotate.call..inner(*args, **kwargs)
112 @wraps(func)
113 def inner(*args, **kwargs):
114 libnvtx_push_range(self.attributes, self.domain.handle)
→ 115 result = func(*args, **kwargs)
116 libnvtx_pop_range(self.domain.handle)
117 return result
File ~/miniconda3/envs/wsl_py310/lib/python3.10/site-packages/cudf/core/series.py:602, in Series.init(self, data, index, dtype, name, copy, nan_as_null)
584 if not isinstance(data, ColumnBase):
585 # Using getattr_static
to check if
586 # data
is on device memory and perform
(…)
592 # be expensive or mark a buffer as
593 # unspillable.
594 has_cai = (
595 type(
596 inspect.getattr_static(
(…)
600 is property
601 )
→ 602 data = column.as_column(
603 data,
604 nan_as_null=nan_as_null,
605 dtype=dtype,
606 length=len(index) if index is not None else None,
607 )
608 if copy and has_cai:
609 data = data.copy(deep=True)
File ~/miniconda3/envs/wsl_py310/lib/python3.10/site-packages/cudf/core/column/column.py:2469, in as_column(arbitrary, nan_as_null, dtype, length)
2455 if (
2456 isinstance(arbitrary, pd.Index)
2457 and arbitrary.dtype == cudf.dtype(“object”)
(…)
2464 )
2465 ):
2466 raise MixedTypeError(
2467 “Cannot create column with mixed types”
2468 )
→ 2469 data = as_column(
2470 pyarrow_array,
2471 dtype=dtype,
2472 nan_as_null=nan_as_null,
2473 )
2474 except (pa.ArrowInvalid, pa.ArrowTypeError, TypeError) as e:
2475 if isinstance(e, MixedTypeError):
File ~/miniconda3/envs/wsl_py310/lib/python3.10/site-packages/cudf/core/column/column.py:1995, in as_column(arbitrary, nan_as_null, dtype, length)
1989 if isinstance(arbitrary, pa.lib.HalfFloatArray):
1990 raise NotImplementedError(
1991 "Type casting from float16
to float32
is not "
1992 "yet supported in pyarrow, see: "
1993 “[ARROW-3802] [C++] Cast to/from halffloat not implemented - ASF JIRA”
1994 )
→ 1995 col = ColumnBase.from_arrow(arbitrary)
1997 if isinstance(arbitrary, pa.NullArray):
1998 if dtype is not None:
1999 # Cast the column to the dtype
if specified.
File ~/miniconda3/envs/wsl_py310/lib/python3.10/site-packages/cudf/core/column/column.py:379, in ColumnBase.from_arrow(cls, array)
376 elif isinstance(array.type, ArrowIntervalType):
377 return cudf.core.column.IntervalColumn.from_arrow(array)
→ 379 result = libcudf.interop.from_arrow(data)[0]
381 return result._with_type_metadata(cudf_dtype_from_pa_type(array.type))
File ~/miniconda3/envs/wsl_py310/lib/python3.10/contextlib.py:79, in ContextDecorator.call..inner(*args, **kwds)
76 @wraps(func)
77 def inner(*args, **kwds):
78 with self._recreate_cm():
—> 79 return func(*args, **kwds)
File interop.pyx:199, in cudf._lib.interop.from_arrow()
RuntimeError: Fatal CUDA error encountered at: /opt/conda/conda-bld/work/cpp/src/bitmask/null_mask.cu:93: 801 cudaErrorNotSupported operation not supported