hipdf.MultiIndex.from_arrow

hipdf.MultiIndex.from_arrow#

20 min read time

Applies to Linux

classmethod MultiIndex.from_arrow(data)#

Convert from PyArrow Table to Frame

Parameters#

data : PyArrow Table

Raises#

TypeError for invalid input type.

Examples#

>>> import cudf
>>> import pyarrow as pa
>>> data = pa.table({"a":[1, 2, 3], "b":[4, 5, 6]})
>>> cudf.core.frame.Frame.from_arrow(data)
   a  b
0  1  4
1  2  5
2  3  6