pandas.DataFrame.from_arrow#

classmethod DataFrame.from_arrow(data)[source]#

Construct a DataFrame from a tabular Arrow object.

This function accepts any Arrow-compatible tabular object implementing the Arrow PyCapsule Protocol (i.e. having an __arrow_c_array__ or __arrow_c_stream__ method).

This function currently relies on pyarrow to convert the tabular object in Arrow format to pandas.

Added in version 3.0.

Parameters:
datapyarrow.Table or Arrow-compatible table

Any tabular object implementing the Arrow PyCapsule Protocol (i.e. has an __arrow_c_array__ or __arrow_c_stream__ method).

Returns:
DataFrame