Web Scraping, Data Cleaning, and Data Analysis
Perform Web Scraping to extract police deaths data. Clean the extracted data and perform data analysis.
- Use BeautifulSoup to extract data from Office Memorial Down Page
- Clean the extracted data
- Perform data analysis:
- Determine the top reasons of police deaths
- Perfrom time series analysis to determine any trends, cycle, and seasonality
- Determine the states with high police deaths
In conclusion, the top causes of police deaths are COVID, 9/11-related illness, gunfire, heart attack, and car crash. COVID and 9/11 emerge as leading causes even though they only occurred in a specific year. Moreover, there is a seasonality in police deaths, increasing from start to middle of the year and decreasing from middle to end, with the 2nd quarter of the year as the peak. Lastly, Texas, New York, Florida, California, and Georgia have the highest police deaths.