This is a web based application that uses a data set based on the details of :-
-
No. of accidents.
-
Date and Time Specifications.
-
No. of casualties.
-
No. of injured pedestrians,cyclists, and motorists.
-
Location co-ordinates.
and many other useful information about New York City.
The dataset can be found in the given link :-
-
streamlit
. -
Pyplot.Express
.
- Located the spot of accidents using
streamlit.map
.
- Visualized no. of accidents in a given time of day using
pydeck.Deck
andpydeck.Layer
.
- Visualized minute-wise breakdown within an hour-duration using
numpy.histogram
.
- Categorised dangerous streets by name on the basis of the affected class (mainly,
Pedestrians
,Cyclists
,andMotorists
) usingst.selectbox
andst.write(data.query())
.
- Finally, visualized the raw data after cleaning and classifying the columns.
Please don't forget to change the DATA_URL
before taking the code for personal use