Wednesday 10/25/23 project analysis

# Distribution of threat level based on race

plt.figure(figsize=(15, 7))
sns.countplot(data=data, x=’threat_level’, hue=’race’, palette=”viridis”)
plt.title(“Distribution of Threat Level Based on Race”)
plt.ylabel(“Number of Shootings”)
plt.xlabel(“Threat Level”)
plt.legend(title=”Race”)
plt.show()
Attack: Most incidents across all racial categories are labeled as “attack”. Within this category, White individuals dominate, followed by Black and Hispanic individuals. Other: The “other” category follows a similar distribution to the “attack” category, with White individuals being the predominant group, followed by Black and Hispanic individuals. Undetermined: The number of incidents labeled as “undetermined” is relatively low across all racial categories. This visualization provides insights into the perceived threat levels associated with different racial categories in police shooting incidents.

Leave a Reply

Your email address will not be published. Required fields are marked *