One train keeps losing time between 42 St and 34 St.
Each row is a station and time runs left to right, so every diagonal is one downtown train. The bright one slows on a single stretch, but nothing in the train data says why.
Track work keeps the subway running, but trains slow down as they pass a work zone. Work orders and train movements lived in separate systems, so no one could say which work locations and times cost the most service.
I joined the two datasets on track, time, and location, measured the extra running time against typical times for the same segment, direction, and hour, and automated the pipeline with Airflow and Spark SQL so teams can refresh it daily. Department leadership agreed to move the worst corridor's track work overnight, when far fewer people ride. The results describe observed additional train running time, not passenger hours or time saved after a schedule change.
- ≈64 sec
- additional running time per affected segment
- 38%
- of midday delay from track work on one corridor (58 of 154 hours, three months)
- 6M
- train arrivals on one line matched to 490K work orders