This is a countrywide car accident dataset that covers 49 states of the USA. The accident data were collected from February 2016 to March 2023, using multiple APIs that provide streaming traffic incident (or event) data. These APIs broadcast traffic data captured by various entities, including the US and state departments of transportation, law enforcement agencies, traffic cameras, and traffic sensors within the road networks. The dataset currently contains approximately 7.7 million accident records.
There are 4 directory:
- README.md: The current file
- Dataset: Place where the downloaded data resides
- src: All the python files which we used to derive insights
- visualization: Contains important insightful plots that we got
- requirements.txt: Contains all the dependencies to be installed
Install all the dependencies using the below code.
pip install -r requirements.txt
The download the dataset from the below link
Run the src/notebook.ipynb file to get all the plots
- folium
- pandas
- geopy
- numpy
- plotly
- scikit-learn
- scipy
- tabulate
- matplotlib
- geopandas