現在用大青葉庫,大青葉庫錯誤與開放的數據從kaggle設爲等值線
map.choropleth(geo_path=country_geo, data=plot_data,
columns=['CountryCode', 'Value'],
key_on='feature.id',
fill_color='YlGnBu', fill_opacity=0.7, line_opacity=0.2,
legend_name=hist_indicator
)
代碼的上面部分是給我下面的錯誤:
TypeError: choropleth() got an unexpected keyword argument 'geo_path'
當我更換geo_path
與geo_data
我得到這個錯誤:
JSONDecodeError: Expecting value: line 7 column 1 (char 6)