Skip to content

Instantly share code, notes, and snippets.

@parulnith
Created August 23, 2018 00:06
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 parulnith/8e5875e5c75be30b14af087e66f4b716 to your computer and use it in GitHub Desktop.
Save parulnith/8e5875e5c75be30b14af087e66f4b716 to your computer and use it in GitHub Desktop.
# Setup a folium map at a high-level zoom
map = folium.Map(location=[100, 0], zoom_start=1.5)
# choropleth maps bind Pandas Data Frames and json geometries.
#This allows us to quickly visualize data combinations
map.choropleth(geo_data=country_geo, data=plot_data,
columns=['CountryCode', 'Value'],
key_on='feature.id',
fill_color='YlGnBu', fill_opacity=0.7, line_opacity=0.2,
legend_name=hist_indicator)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment