'using plotly to map the US map but python doesnt plot anything
I'm using the following two methods to plt a US map and demonstrate each state in different color to reflect their average salary, when I run this and the dataset, it atually runs without error, but python doesnt produce any graphs. Could anyone help?
import plotly.express as px
import plotly
fig = px.choropleth(df,
locations='Job Location',
locationmode="USA-states",
scope="usa",
color='Avg Salary(K)',
color_continuous_scale="Viridis_r",
)
fig.show()
fig = px.choropleth(df, locations='Job Location',
locationmode="USA-states", color='Avg Salary(K)', scope="usa")
fig.show()
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
