bigframes.geopandas.GeoSeries.from_wkt#

classmethod GeoSeries.from_wkt(data, index=None, *, session: Session | None = None) GeoSeries[source]#

Alternate constructor to create a GeoSeries from a list or array of WKT objects.

Examples:

>>> import bigframes as bpd
>>> import bigframes.geopandas
>>> wkts = [
... 'POINT (1 1)',
... 'POINT (2 2)',
... 'POINT (3 3)',
... ]
>>> s = bigframes.geopandas.GeoSeries.from_wkt(wkts)
>>> s
0    POINT (1 1)
1    POINT (2 2)
2    POINT (3 3)
dtype: geometry
Parameters:
  • data (array-like) – Series, list, or array of WKT objects.

  • index (array-like or Index, optional) – The index for the GeoSeries.

Returns:

A GeoSeries of geometries.

Return type:

bigframes.geopandas.GeoSeries