Skip to content

Instantly share code, notes, and snippets.

Created May 18, 2021 08:12
What would you like to do?
# Choropleth Maps
import plotly.graph_objects as go
import pandas as pd
data = pd.read_csv("")
figure = go.Figure(data=go.Choropleth(locations=data["code"],
z = data["total exports"].astype(float),
colorbar_title="Millions USD"))
figure.update_layout(title_text="US Agriculture Exports", geo_scope='usa')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment