Skip to content

Instantly share code, notes, and snippets.

@lmeulen
Created April 4, 2021 11:17
Show Gist options
  • Save lmeulen/1d1596e4285262521d155d4c70271868 to your computer and use it in GitHub Desktop.
Save lmeulen/1d1596e4285262521d155d4c70271868 to your computer and use it in GitHub Desktop.
crowdedness_loop_trips
timedata = pd.DataFrame()
for r in trips[trips.date == displaydate].trip_short_name.unique():
timedata = timedata.append(get_trip_data(ritnumber=r, ritdate = displaydate))
timedata = timedata.merge(stops[['stop_id', 'stop_code', 'stop_name']])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment