Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created April 20, 2021 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/02d65042427dcd6dc81a5521b2e06474 to your computer and use it in GitHub Desktop.
Save amankharwal/02d65042427dcd6dc81a5521b2e06474 to your computer and use it in GitHub Desktop.
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