to_geos#

GeosSeriesAccessor.to_geos(copy=False)#

Transform the series in a shapely geos column.

Parameters:

copy (bool, optional) – Whether to copy the data or return a wrapper around the same data; Default False

Returns:

Series with a geos dtype.

Return type:

pandas.Series

Note

This function will try and convert the following types to geos:

  • geopandas.GeoSeries

  • shapely geometries

  • strings (wkt)

  • bytes (wkb)