hipdf.DataFrame.from_arrow#
20 min read time
Applies to Linux
- classmethod DataFrame.from_arrow(table)#
Convert from PyArrow Table to DataFrame.
Parameters#
- tablePyArrow Table Object
PyArrow Table Object which has to be converted to cudf DataFrame.
Raises#
TypeError for invalid input type.
Returns#
cudf DataFrame
Notes#
Does not support automatically setting index column(s) similar to how
to_pandas
works for PyArrow Tables.
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