Skip to content

Instantly share code, notes, and snippets.

@emmagrimaldi
Last active March 30, 2019 12:12
Show Gist options
  • Select an option

  • Save emmagrimaldi/f066f9583360c02c61360f2b94dfb7b5 to your computer and use it in GitHub Desktop.

Select an option

Save emmagrimaldi/f066f9583360c02c61360f2b94dfb7b5 to your computer and use it in GitHub Desktop.
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