Skip to content

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.

2 participants