Last active
March 30, 2019 12:12
-
-
Save emmagrimaldi/f066f9583360c02c61360f2b94dfb7b5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| data = [] | |
| for event in event_types: | |
| event_data = dict( | |
| lat = df.loc[df['EVENT_TYPE'] == event,'BEGIN_LAT'], | |
| lon = df.loc[df['EVENT_TYPE'] == event,'BEGIN_LON'], | |
| name = event, | |
| marker = dict(size = 8, opacity = 0.5), | |
| type = 'scattermapbox' | |
| ) | |
| data.append(event_data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment