Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created Apr 20, 2021
Embed
What would you like to do?
figure = go.Figure(data=go.Choropleth(locations=data["code"],
z = data["total exports"].astype(float),
locationmode="USA-states",
colorscale="Reds",
colorbar_title="Millions USD"))
figure.update_layout(title_text="US Agriculture Exports", geo_scope='usa')
figure.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment