cudf.Index.from_arrow#
- classmethod Index.from_arrow(obj: pa.Array) Index | MultiIndex [source]#
Create from PyArrow Array/ChunkedArray.
- Parameters:
- arrayPyArrow Array/ChunkedArray
PyArrow Object which has to be converted.
- Returns:
- SingleColumnFrame
- Raises:
- TypeError for invalid input type.
Examples
>>> import cudf >>> import pyarrow as pa >>> cudf.Index.from_arrow(pa.array(["a", "b", None])) Index(['a', 'b', <NA>], dtype='object')