Created
August 23, 2018 00:06
-
-
Save parulnith/8e5875e5c75be30b14af087e66f4b716 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
# 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