- Introduction
- Python Libraries and Data Used
- Motor Crashes by Year and Time of Day
- Density Heatmap by Plotly
Keywords: Motor Crashes, New York City, Urban Transportation, Open Source Data, Python, Data Analysis
List of python libraries used, version, and its purpose for the analysis.
| Library | Version | Purpose |
|---|---|---|
| numpy | 1.21.5 | array computing with Python |
| pandas | 1.4.2 | data structures for data analysis and statistics |
| geopandas | 0.14.1 | geographic pandas extensions |
| matplotlib | 3.5.1 | Python plotting package |
| plotly | 5.6.0 | An open-source, interactive data visualization library for Python |
List the data sets used in the notebook. Specify sources. Indicate data formats for each input data set. Describe the most relevant columns/variables for the analysis per each input dataset.
| Dataset | Format | Source | Description | Selected/used variables |
|---|---|---|---|---|
| Motor Vehicle Collisions | CSV | NYC Open Data | Motor Vehicle Collisions in New York, USA | CRASH DATE, CRASH TIME, BOROUGH |
| Borough Boundaries | GeoJson | NYC Open Data | Borough boundaries in NYC | borough_name, geometry |



