我用Hadley提供的代码复制了Choropleth。我的数据是包含国家/地区名称的csv。谋杀未遂,不是。Assaultand no.强奸的证据。<- merge(county_df1, unemp2, by = c("state"))#Discretise rate to use with Brewer colour scheme - many options here
#
这是我的代码:nycMap = folium.Map(location=[40.75, -74.125])
nycMap.choropleth(geo_path="nycmap.geojson.jsonInstead use the new Choropleth class, which has the same arguments.See the example notebook 'GeoJSON_and_choropleth' for how to do this.Frame