pandas.DataFrame.from_arrow — pandas 3.0.0rc0+33.g1fd184de2a documentation (original) (raw)
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