Week 8, Monday

Heat Map

As part of my investigation, I focused on the “armed” and “race” columns when creating a Python heatmap for the police-shootings dataset. We visualised the distribution of racial groups by armed status using matplotlib, seaborn, and pandas. I refined the heatmap so that it only displayed the values “gun,” “knife,” and “unarmed.” The resulting red-colored chart provided a clear explanation of these specific armed statuses and racial populations. This improved my data visualisation skills by helping me understand how heatmaps can be tailored to extract relevant information from large, complex datasets.

 

Leave a Reply

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