python convert polygone to centroid

36

# copy poly to new GeoDataFrame
points = poly.copy()
# change the geometry
points.geometry = points['geometry'].centroid

Comments

Submit
0 Comments