Skip to main content
Construct a GeoDataFrame from a Arrow table object based on GeoArrow extension types. See https://geoarrow.org/ for details on the GeoArrow specification. This functions accepts any tabular Arrow object implementing the Arrow PyCapsule Protocol_ (i.e. having an __arrow_c_array__ or __arrow_c_stream__ method). .. _Arrow PyCapsule Protocol: https://arrow.apache.org/docs/format/CDataInterface/PyCapsuleInterface.html Added in version 1.0.

Signature

Parameters

pyarrow.Table or Arrow-compatible table
required
Any tabular object implementing the Arrow PyCapsule Protocol (i.e. has an __arrow_c_array__ or __arrow_c_stream__ method). This table should have at least one column with a geoarrow geometry type.
str | None
default:"None"
The name of the geometry column to set as the active geometry column. If None, the first geometry column found will be used.
dict | None
default:"None"
Arguments passed to the pa.Table.to_pandas method for non-geometry columns. This can be used to control the behavior of the conversion of the non-geometry columns to a pandas DataFrame. For example, you can use this to control the dtype conversion of the columns. By default, the to_pandas method is called with no additional arguments. Requires GeoPandas 1.1 or newer when provided.

Returns

GeoDataFrame
See also
  • GeoDataFrame.to_arrow
  • GeoSeries.from_arrow

Examples