hipdf.MultiIndex.from_arrow#
19 min read time
Applies to Linux
- classmethod MultiIndex.from_arrow(data: pa.Table) Self#
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])) Index(['a', 'b', <NA>], dtype='object')