hipdf.DataFrame.from_arrow

hipdf.DataFrame.from_arrow#

19 min read time

Applies to Linux

classmethod DataFrame.from_arrow(table: Table) Self#

Convert from PyArrow Table to DataFrame.

Parameters#

tablepyarrow.Table

PyArrow Table to convert to a cudf DataFrame.

Raises#

TypeError for invalid input type.

Returns#

cudf DataFrame

Examples#

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