geopandas.GeoSeries.m#

property GeoSeries.m[source]#

Return the m coordinate of point geometries in a GeoSeries

Requires Shapely >= 2.1.

Added in version 1.1.0.

Returns:
pandas.Series

Examples

>>> from shapely.geometry import Point
>>> s = geopandas.GeoSeries.from_wkt(
...     [
...         "POINT M (2 3 5)",
...         "POINT M (1 2 3)",
...     ]
... )
>>> s
0    POINT M (2 3 5)
1    POINT M (1 2 3)
dtype: geometry
>>> s.m
0    5.0
1    3.0
dtype: float64