Spring 2019 @ UCSD
Public transportation is an economical and eco-friendly way to travel. More cities should be investing in public transport infrastructure.
This project tries to analyse:
- Annual ridership trends of public transportation.
- Fuel savings due to usage of public transport.
- Correlation between public transport ridership and road accidents.
- Correlation between public transport ridership and car sales.
- US county level public transport vehicle availability.
For the choropleth plots, we are using a native bokeh choropleth implementation, for which bokeh sampledata needs to be installed.
Please install it by typing in terminal: bokeh sampledata
- bokeh
- bokeh sampledata
- matplotlib
- seaborn
- plotly
- numpy
- Please use branch final. Select branch using
git checkout final
. Root > Master
The folderMaster
contains all scripts and some dataset files.- The repo contains dataset files totalling 9.73 MB.
- Instead of using the provided Jupyter notebook to view plots, we recommend using the links provided in the section below to view all the plots. Mitigates the need to compile code to view plots.
import_xls.py
containsapta_utils()
class to obtain data from APTA sources, and visualization (correlations, choropleths, fuel saved) for the data.graph_county_properties.py
- Gives a bar graph of all counties for the required property.unlinked_trips_us.py
- Returns plot for the number of unlinked trips in public transport in US over the years.ridership_US_1922.py
- Returns the plot of changing transit ridership for major modes of public transportread_pdf_HK_env.py
- Returns the electricity consumption and ridership data in HK in form of a dataframe from which correlation plot can be obtained.plot_for_changing_ridership_trend_us.py
- Returns the public transport ridership change in US over the years plot.passenger_miles.py
- Returns the US Passenger miles over the years plot.nyvshk_traffic.py
- Returns the NY vs HK Traffic Accidents plot.hk_correlation.py
- Returns the HK Ridership vs Traffic Accidents correlation plot.employee_compensation.py
- Return the public transportation employee in US compensation plots.Group-3_Project_Effectiveness of Public Transportation.ipynb
- Contains matplotlib plots
-
Himanshu Gupta
-
Mingkun Yin
-
Rajat Sethi
- Rohit Kumar
*Fact_Book_Appendix_B*
files contain US county wise data for transportation agencies.abc-page-17-table-1.csv
- File containing electricity consumption of public transport over the years in HK.table21.xls
- HK public transport ridership data.NY_crashes.csv
- NY traffic accidents data.table11.xls
- HK traffic accidents and avg. daily ridership data.123.pdf
- HK public transport environment report.2019-APTA-Fact-Book-Appendix-A.xlsx
- US APTA published ridership, revenue miles, employee compensation, etc dataset for public transport employees.b.csv
- HK Ridership data (annually).a.csv
- NY Ridership data(annually).NY.csv
- NY revenue miles, unlinked trips, etc data.