【发布时间】:2022-01-12 22:05:44
【问题描述】:
我试图在列 jobLocation 上的我的数据框“json”上做一个 Plotly Choropleth。下面是DataFrame:
绘图显示没有数据。我做错了什么?
fig = px.choropleth(json, locations='jobLocation', locationmode="USA-states", color='jobLocation',
scope="usa",
labels={'jobLocation':'jobLocation'})
fig.show()
【问题讨论】: