Skip to main content
`Ctrl`+`K`

# pandas.DataFrame.from_arrow

classmethod DataFrame.from_arrow(data)

  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:
    data pyarrow.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

  See also

  `Series.from_arrow`

    Construct a Series from an Arrow object.

  Examples

      >>> import pyarrow as pa
      >>> table = pa.table({"a": [1, 2, 3], "b": ["x", "y", "z"]})
      >>> pd.DataFrame.from_arrow(table)
         a  b
      0  1  x
      1  2  y
      2  3  z