Geojson文件可用: 下面的代码没有显示任何结果,有什么问题吗
!wget --quiet https://cocl.us/sanfran_geojson -O san_francisco_nh.json
print('GeoJSON file downloaded!')
sanfran_map.choropleth(
geo_data=sanfran_geo,
data=df_sf,
columns=['Neighborhood', 'Count'],
key_on='feature.properties.DISTRICT',
fill_color='YlOrRd',
fill_opacity=0.7,
line_opacity=0.2,
legend_name="Crime Rate in San Francisco"
)
使用
folium.Choropleth
和folium.LayerControl
:相关问题 更多 >
编程相关推荐