Skip to content

Data Analysis and Mapping Project for University of Toronto Freshman year CSC110, 2021.

Notifications You must be signed in to change notification settings

JLenander/Fall_2021_Course_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Term Project for CSC110

Mapping the average response times for the Fire Department of the City of New York before and during Covid19. Average response time plot shows monthly response time data in seconds from April 2018 to April 2021 (As of the time of this project, FDNY Incident response data is only available up to May 5th 2021).

Pimarily uses Plotly, Pandas, and Shapely in Python 3.9.6 to organize and calculate average incident response times by month separated by FDNY company divisions (boundaries for different units as given in this dataset). Incident response data location is given in the form of alarm boxes (either FDNY physical or historical pull-alarm boxes located around intersections in nyc or private/nonphysical alarm boxes, like subway stations or businesses, connected to the FDNY system).

Not intended to be a standalone app; You can either run the python main file or view the given output files in the output directory. By default the code will pull from the preprocessed data in data/processed to generate the plots. See commented instructions for other options.

Due to geocoding limitations, not every incident in the dataset is represented as not every alarm box in incidents is still active and the dataset for the alarm boxes only shows active alarm box locations. From what I understand, bulk geocoding (figuring out the Longitude/Latitude based off of street intersections like "2nd ave & E 7th st") is not easy for free.

Data from the NYC Open Data portal. Project processes 4,000,000+ data entries from the FDNY Incident dataset.

Sample Plots:

Alarm Box Locations

Plot showing alarm box locations as dots on map

Average Response Times Animated by month

Animation of average response times per company

Fire Company Boundaries + Alarm Box Locations

Plot showing alarm box locations as dots over the colored shapes of FDNY company boundaries

50% Transparency Company Boundaries + Alarm Box Locations

Plot showing alarm box locations and half transparent colored company boundaries

About

Data Analysis and Mapping Project for University of Toronto Freshman year CSC110, 2021.

Resources

Stars

Watchers

Forks

Languages