Skip to main content
Construct a GeoDataFrame from a dictionary. Added in version 2.0.0.

Signature

Parameters

dict
required
Dictionary of the form {field: array-like} or {field: dict}.
str or array - like
default:"None"
If a string, the column to use as the active geometry. If an array-like, it is added as the "geometry" column.
Any | None
default:"None"
Coordinate reference system to assign to the resulting frame. The coordinates are not transformed.
Additional arguments passed to pandas.DataFrame.from_dict, such as orient or columns.

Returns

GeoDataFrame
This constructor first materializes the dictionary in a local GeoPandas GeoDataFrame on the driver, then distributes it with Spark. It is intended for small in-memory inputs. For large datasets, create a Spark DataFrame or use a distributed Sedona data source instead.Once distributed, dictionary values follow Spark schema inference. Each column must contain values that Spark can represent with one compatible type.

Examples