Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created October 5, 2020 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/09c07bf7b34f2cd94996e8f915b036af to your computer and use it in GitHub Desktop.
Save amankharwal/09c07bf7b34f2cd94996e8f915b036af to your computer and use it in GitHub Desktop.
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