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

Gtfs funnel performance improvements #1335

Merged
merged 11 commits into from
Dec 27, 2024
Merged

Conversation

tiffanychu90
Copy link
Member

@tiffanychu90 tiffanychu90 commented Dec 27, 2024

gtfs_funnel

  • do a pass at refactoring several scripts in gtfs_funnel, esp the ones touching large dfs like stop_times and vp
  • refactor stop_times_direction.py, vp_dwell_time.py, vp_condenser.py
    • simplify functions where possible
    • rewrite to use arrays and vectorized operations. rather than passing dfs, opt for using lists or series to get the subsets that require more preprocessing.
    • make better use of parquet filtering to grab only what's necessary
  • consolidate vp_keep_usable.py and vp_direction.py into 1 script
    • remove vp_direction, keep vp_keep_usable only
  • Update README and mermaid.md diagrams to reflect the fewer steps
  • Epic - GTFS analytics pipeline performance improvements #1315

@tiffanychu90 tiffanychu90 merged commit 7bf7c63 into main Dec 27, 2024
2 checks passed
@tiffanychu90 tiffanychu90 deleted the gtfs-funnel-performance branch December 27, 2024 22:22
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.

1 participant