Age Distribution of People killed
This code will produce a histogram of the age column of the fatal police shootings Washington Post dataset. The histogram will show that the age distribution is skewed to the right, meaning that there are more young people than old people who are killed by police. The code will also add a vertical line at the median age, which is 29 years old.
The skewness is a measure of how asymmetrical a distribution is. A skewness of zero indicates a symmetrical distribution, while a positive skewness indicates a distribution that is skewed to the right and a negative skewness indicates a distribution that is skewed to the left.
In this case, the skewness of the age distribution is 0.52, which indicates that the distribution is moderately skewed to the right. This means that there are more young people than old people who are killed by police.
This visualization can be used to raise awareness of the problem of police violence against young people. It can also be used to advocate for policies that can help to reduce police violence, such as de-escalation training and crisis intervention training.