-
-
Save amankharwal/09c07bf7b34f2cd94996e8f915b036af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url = 'https://raw.githubusercontent.com/python-visualization/folium/master/examples/data' | |
country_shapes = f'{url}/world-countries.json' | |
folium.Choropleth( | |
geo_data = country_shapes, | |
min_zoom=2, | |
name='Covid-19', | |
data=df, | |
columns=['Country', 'Confirmed'], | |
key_on='feature.properties.name', | |
fill_color='OrRd', | |
nan_fill_color='black', | |
legend_name = 'Total Confirmed COVID cases', | |
).add_to(m) | |
m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment