Python in the newsroom: Interactive maps with plotly, geopandas

preview_player
Показать описание
A quick walkthrough of how to convert a shapefile to a geojson file usng geopandas, then how to use that to make a quick plotly choropleth with built-in hover tool.
Рекомендации по теме
Комментарии
Автор

Good call on the "featurekeyid". So crazy that this isn't in plotly's documentation.

andrewcoyne
Автор

Nice tutorial, thank you. On In[59]: pd.merge(townmap, f1).plot(column="median_renter_age") does not work on my dataset (read in a shapefile (ok), saved to geojson (ok), but getting error that pandas does not have a plot function. --> AttributeError: module 'pandas' has no attribute 'plot'. Seems like I am missing something basic here?

inlightofnature
Автор

Really nice tutuorial, i have a issue when i plot the map the color polygons is missing. I follow the exactly same step as you did but I'm not sure why.

joneszeng