Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ianhi/mbta-analysis
Analysis of mbta data - library + basic analysis
https://github.com/ianhi/mbta-analysis
Last synced: 12 days ago
JSON representation
Analysis of mbta data - library + basic analysis
- Host: GitHub
- URL: https://github.com/ianhi/mbta-analysis
- Owner: ianhi
- License: bsd-3-clause
- Created: 2022-03-30T03:38:52.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-02T00:01:19.000Z (6 months ago)
- Last Synced: 2024-11-05T08:02:59.370Z (about 2 months ago)
- Language: Python
- Size: 116 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: docs/contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# mbta-analysis
## What
Some basic python tools for analyzing mbta historical data.See the [examples](examples) folder for basic usage such as how to make this comparison to see the effect of the Mass Ave Bus priority lanes on the 77 bus.
(see the example notebook for more details on how to interpret this figure)![Image comparing 77 bus and 1 bus before and after the 77 got a bus priority lane](77-bus-lane-impact.png)
## Why
https://dashboard.transitmatters.org/ is amazing and definitely what you should use for quickly looking at things. But it doesn't allow easy comparison of different dates or different lines. For example take a look at the [twitter thread](https://twitter.com/PetruSofio/status/1508555535360180230) that motivated the creation of this. So this library ingests mbta data and does some reasonable pandas transforms## Improvements
There are undoubtedly many ways to improve this. I'm no pandas professional, in fact I had never used a `groupby` before starting this. All of which is to say: PRs and suggestions welcome :smile:
## Data
I downloaded the data using the scripts here: https://github.com/transitmatters/t-performance-dash/tree/10698c5e1b102521f8f6f66764ccaf13873a0bb7/server/bus