cudf.DataFrame.from_arrow#
- 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.
- Returns
- cudf DataFrame
- Raises
- TypeError for invalid input type.
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