python convert polygone to centroid

47

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

Comments

Submit
0 Comments