chihacknight / chn-ghost-buses

"Ghost buses" analysis project through Chi Hack Night
https://github.com/chihacknight/breakout-groups/issues/217
MIT License
19 stars 14 forks source link

[Data] More Bus Statistics #54

Closed dcjohnson24 closed 8 months ago

dcjohnson24 commented 1 year ago

Calculate some additional bus statistics such as

These numbers could also be calculated for different sections of each route.

See here for more information.

kollerbud commented 1 year ago

are these issues still active and need to to be worked on? I can start on them.

dcjohnson24 commented 1 year ago

Yes these are still active. Thanks for your help.

kristenhahn commented 1 year ago

I may be able to help with some of this. I've been working on headways using the chi-hack-night ghost buses data for awhile now here. You're welcome to use anything you find helpful there, and I'm happy to help wherever I can. A jupyter notebook gives an overview of what the code in headways.py can do. It calculates bus arrival times for a given bus stop, route, and direction of travel. It calculates scheduled headways and actual headways and summarizes both. Mean, median, 25th and 75th percentile headways are provided for the day at each bus stop on a given day and route. This is an independent learning exercise for me, I'm not a professional coder. So I think the logic is good, but I have no idea whether the code is clear and useful to others. If not, comments or suggestions are always welcome. I plan to add to the readme later this weekend, to explain a few nuances in the approach.

dcjohnson24 commented 1 year ago

This looks great, thanks! I'll try to take a closer look at this later this week.