First project from Metis Fall 2018 Bootcamp (Project Benson) with Dana Lindquist, Jason Salazer-Adamso Leo Liu & Spencer Tollefson
- Presentation
- Station_to_company_scoring.ipynb - Notebook with EDA of relating stations, companies, turnstiles, and calculating a score for determining which station is close to which company.
- find_schedule.ipynb - Test the funcationality of find_scheddule.py and output the schedule ready to be delivered
- HeatmapWork.ipynb - Output of heatmaps used for presentation
- NYC_map.ipynb - plots outline of Manhattan with dots with geographic location points
find_schedule
- Generates a schedule for stations listed in the df_top.csv, which indicates when volunteers should be at these stationsmerge_station_company
- Function to merge MTA station master data with Grace Hopper company master data and calculate distance between station to company.read_mta_stations
- reads MTA masterlist of station coordinates into pandas DataFrame. Cleans formatting slightly.read_mta_turnstile
- Reads the MTA turnstile data from http://web.mta.info/developers/turnstile.html for a given date range and creates a data frame.read_tech_companies
- takes 'tech_companies.csv' and enters into pandas DataFrametop_stations
- Calculates the top station/company pairs based on a column in a merge station_company data frame.create_station_heatmap
- This function inputs a Name of a MTA station and a DataFrame with complete, clean MTA turnstile count data. It outputs two heatmaps - one for Entries and one for Exits - that shows the highest conentrated passenger throughput by time of day (morning, midday, evening) and day of week.
from geopy.distance import geodesic
- Library to calculate the distance between to points with Lat/Long coordinatesfrom mpl_toolkits.basemap import Basemap
- Library to plot maps and points on the maps
- MTA Turnstile Data - http://web.mta.info/developers/turnstile.html
- MTA Station Data - https://data.cityofnewyork.us/Transportation/Subway-Stations/arq3-7z49 (export data as csv)
- Grace Hopper Companies - https://ghc.anitab.org/2017-sponsorships/corporate-sponsors/