hipdf.Series.from_arrow#
20 min read time
Applies to Linux
- classmethod Series.from_arrow(array)#
Create from PyArrow Array/ChunkedArray.
Parameters#
- arrayPyArrow Array/ChunkedArray
PyArrow Object which has to be converted.
Raises#
TypeError for invalid input type.
Returns#
SingleColumnFrame
Examples#
>>> import cudf >>> import pyarrow as pa >>> cudf.Index.from_arrow(pa.array(["a", "b", None])) StringIndex(['a' 'b' None], dtype='object') >>> cudf.Series.from_arrow(pa.array(["a", "b", None])) 0 a 1 b 2 <NA> dtype: object