Add choropleth map
In [ ]:
Copied!
import geomapdemo.foliumap as geomapdemo
import geomapdemo.foliumap as geomapdemo
In [ ]:
Copied!
m = geomapdemo.Map(center=[48, -102], zoom=3)
m = geomapdemo.Map(center=[48, -102], zoom=3)
In [ ]:
Copied!
columns = ["State", "Unemployment"]
key_on = "feature.id"
columns = ["State", "Unemployment"]
key_on = "feature.id"
In [ ]:
Copied!
m.add_choropleth_map(
json="https://raw.githubusercontent.com/python-visualization/folium/main/examples/data/us-states.json",
csv="https://raw.githubusercontent.com/python-visualization/folium/main/examples/data/US_Unemployment_Oct2012.csv",
columns=columns,
key_on=key_on,
)
m.add_choropleth_map(
json="https://raw.githubusercontent.com/python-visualization/folium/main/examples/data/us-states.json",
csv="https://raw.githubusercontent.com/python-visualization/folium/main/examples/data/US_Unemployment_Oct2012.csv",
columns=columns,
key_on=key_on,
)
In [ ]:
Copied!
m
m