ianhi / mbta-analysis

Analysis of mbta data - library + basic analysis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mbta-analysis

What

Some basic python tools for analyzing mbta historical data.

See the 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

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 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 😄

Data

I downloaded the data using the scripts here: https://github.com/transitmatters/t-performance-dash/tree/10698c5e1b102521f8f6f66764ccaf13873a0bb7/server/bus

About

Analysis of mbta data - library + basic analysis

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%