geopandas.GeoSeries¶
-
class
geopandas.
GeoSeries
(data=None, index=None, crs=None, **kwargs)¶ A Series object designed to store shapely geometry objects.
- Parameters
- dataarray-like, dict, scalar value
The geometries to store in the GeoSeries.
- indexarray-like or Index
The index for the GeoSeries.
- crsstr, dict (optional)
Coordinate Reference System of the geometry objects.
- kwargs
- Additional arguments passed to the Series constructor,
e.g.
name
.
See also
GeoDataFrame
pandas.Series
Examples
>>> from shapely.geometry import Point >>> s = geopandas.GeoSeries([Point(1, 1), Point(2, 2), Point(3, 3)]) >>> s 0 POINT (1 1) 1 POINT (2 2) 2 POINT (3 3) dtype: geometry