geopandas.GeoSeries.x#

property GeoSeries.x[来源]#

返回 GeoSeries 中点几何图形的 x 位置

Returns:
pandas.Series

另请参阅

GeoSeries.y
GeoSeries.z

示例

>>> from shapely.geometry import Point
>>> s = geopandas.GeoSeries([Point(1, 1), Point(2, 2), Point(3, 3)])
>>> s.x
0    1.0
1    2.0
2    3.0
dtype: float64