Skip to content

Instantly share code, notes, and snippets.

@amankharwal

amankharwal/COVID 19 Secret

Created Oct 5, 2020
Embed
What would you like to do?
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