Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Route Aggregation #987

Merged
merged 6 commits into from
Jan 5, 2024
Merged

Route Aggregation #987

merged 6 commits into from
Jan 5, 2024

Conversation

amandaha8
Copy link
Contributor

  • This is my first attempt at aggregating up the trip level statistics to route level based on Tiffany's work.
  • I experimented with groupby to see if there was any difference with observed=True, observed=False, etc and try to make things faster.
  • I wrote a function that checks the original trip level rows with the aggregated one row=one route results because some of the groupby combos yielded mistakes.
  • I edited Tiffany's original code to exclude columns that are no longer needed/relevant.
  • I added in new columns for the metrics derived from the trip level statistics such as how many minutes of the trip recorded 2+ GPS pings.
  • I reran all the trip level statistics for the months because some columns are added later in the route aggregation step.
  • This PR does not address trips that are outliers. For example, there are some trips in which the scheduled trip time is only 12 minutes but the difference between the first and last time stamp is 1000 minutes.

@amandaha8 amandaha8 merged commit f788e2c into main Jan 5, 2024
3 checks passed
@amandaha8 amandaha8 deleted the vp_usable branch January 5, 2024 23:11
Copy link

github-actions bot commented Jan 5, 2024

@amandaha8 amandaha8 linked an issue Feb 6, 2024 that may be closed by this pull request
@tiffanychu90
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Research Request - RT vs Schedule Trip Level Metrics (using vp_usable)
2 participants