Last active
December 27, 2019 02:30
-
-
Save ekhoda/125c0d4cc2f52bdb60b838d985bbff8a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add paths | |
for row in data.itertuples(): | |
fig.add_trace(go.Scattergeo( | |
lon=[row.OriginLong, row.DestinationLong], | |
lat=[row.OriginLat, row.DestinationLat], | |
mode='lines', | |
line=dict(width=2, color='green'), | |
opacity=0.8, | |
showlegend=False, | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment