set points size in geopandas plot

Solutions on MaxInterview for set points size in geopandas plot by the best coders in the world

showing results for - "set points size in geopandas plot"
Malia
23 Mar 2018
1import geopandas
2
3cities = geopandas.read_file(geopandas.datasets.get_path('naturalearth_cities'))
4# adding a column with random values for the size
5cities['values'] = np.abs(np.random.randn(len(cities))) * 50
6
7cities.plot(markersize=cities['values'])
8
Manuel
07 Sep 2019
1cities.plot(markersize=10)
2