
pip install folium




map.choropleth(geo_data = nyc, data=su_lt_two,columns=['zip', 'Rent'],
key_on='Feature.properties.postalCode',
threshold_scale=[1700.00, 1900.00, 2100.00, 2300.00, 2500.00, 2750.00],
fill_color='YlOrRd', fill_opacity=0.7, line_opacity=0.2,
legend_name='Rent (%)',reset=True)

本文介绍如何使用Python的Folium库,结合GeoJSON数据,创建一个展示纽约各邮政编码区租金水平的热力地图。通过设置不同的颜色阈值和填充不透明度,清晰地展现了租金分布情况。
1546

被折叠的 条评论
为什么被折叠?



