folium - Folium Choropeth 传说重叠
问题描述
请告知我如何调整比例重叠的图例。
""" bins = np.round((df_temp["price_month"].quantile([0, 0.2, 0.4, 0.6, 0.8, 1])))
mymap = folium.Map(location=(singapore_lat,singapore_lng), zoom_start=11,tiles=None)
folium.TileLayer('Stamen Terrain',name="Light Map",control=False).add_to(mymap )
choropleth = folium.Choropleth(
geo_data=gj,
data=df_temp,
name = 'Mean Rental Price',
columns=['district_number', 'price_month'],
key_on='feature.properties.id',
fill_color="BuPu",
fill_opacity=0.9,
line_opacity=1,
threshold_scale = bins,
legend_name = 'Quantile of Mean Condominium Monthly Rental Price',
highlight=True,
show=True,
nan_fill_color = "black"
).add_to(mymap)
"""
解决方案
推荐阅读
- java - 无法处理 openGL ES 变量
- wordpress - Woocommerce Amazon Pay 如何设置州销售税
- javascript - 我可以让字母过滤函数中的语句满足两个参数,同时保留语句本身的名称吗?
- javascript - ClientScript.RegisterStartupScript 未在循环语句中正确调用
- sms - 如何实现这样的短信 USSD 应用程序?
- javascript - 如何更改 img src 的域?
- python - 如何仅使用rdd而不是数据框从spark中的csv中获取N(th)列
- javascript - 如何通过缩写获得时区?
- android - 应为 BEGIN_ARRAY,但在此代码中为 STRING
- html - 为什么我的 css 动画在 Safari 中不起作用?