LACMTA / metro-api-v2

Docs: https://lacmta.github.io/metro-api-v2/ Dev: https://dev-metro-api-v2.ofhq3vd1r7une.us-west-2.cs.amazonlightsail.com/docs
https://lacmta.github.io/metro-api-v2/
0 stars 3 forks source link

Refactor combined dataframes in gtfs_rt_helper.py #474

Closed albertkun closed 8 months ago

albertkun commented 8 months ago

This pull request refactors the code in gtfs_rt_helper.py to combine the dataframes more efficiently. Specifically, it removes any rows with null values in the 'trip_id' column from the combined_trip_update_df, combined_stop_time_df, and combined_vehicle_position_df dataframes. This improves the overall performance and accuracy of the code.