{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Black Lives Matter Visualized\n", "## Lena Bohman\n", "![blm](blm.jpg)\n", "\n", "Source: BBC" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In 2014, I was taking a year off from my undergraduate degree to manage a family crisis and staying with my parents in St. Louis, MO. I grew up middle class in the \"inner city\" of St. Louis, and it was impossible to escape the legacy of white flight and discrimination that I saw everywhere I looked. No one trusted the cops.\n", "\n", "However, I remember being shocked by Ferguson. Not by the sentiments being expressed, but by the fact that long-simmering greivances had blown up in such dramatic fashion. My family lives next to a large city business district, and the protests came down to our neighborhood. One night, the cops fired tear gas into a coffee shop down the street, and it blew into our backyard. I had been told to return home from my job in a nearby restaurant by the riot police, and I was watching from my window as it all played out.\n", "\n", "2020 was, of course, another spark with the murder of George Floyd by a police officer. 6 years later, what have we learned?\n", "\n", "Sometimes, it seems like very little. But we have at least had time to collect data. \n", "\n", "**In these data visualizations, I will attempt to test (and visualize) the hypothesize of the #BLM movement: are black Americans, particularly men, being killed by police at a disproportionate rate by police?**" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import bqplot\n", "import numpy as np\n", "import traitlets\n", "import ipywidgets\n", "import matplotlib.pyplot as plt\n", "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## The Data\n", "This data visualization is based off a data set compiled by the Washington Post and made public on [GitHub](https://github.com/washingtonpost/data-police-shootings). The data set \"contains records of every fatal shooting in the United States by a police officer in the line of duty since Jan. 1, 2015.\"\n", "\n", "The Washington Post explains why their data set is different:\n", "\n", "\"The Post is documenting only those shootings in which a police officer, in the line of duty, shoots and kills a civilian — the circumstances that most closely parallel the 2014 killing of Michael Brown in Ferguson, Mo., which began the protest movement culminating in Black Lives Matter and an increased focus on police accountability nationwide. The Post is not tracking deaths of people in police custody, fatal shootings by off-duty officers or non-shooting deaths.\n", "\n", "The FBI and the Centers for Disease Control and Prevention log fatal shootings by police, but officials acknowledge that their data is incomplete. Since 2015, The Post has documented more than twice as many fatal shootings by police as recorded on average annually.\"\n", "\n", "The data is compiled in a csv, which looks like this:" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | id | \n", "name | \n", "date | \n", "manner_of_death | \n", "armed | \n", "age | \n", "gender | \n", "race | \n", "city | \n", "state | \n", "signs_of_mental_illness | \n", "threat_level | \n", "flee | \n", "body_camera | \n", "longitude | \n", "latitude | \n", "is_geocoding_exact | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "3 | \n", "Tim Elliot | \n", "2015-01-02 | \n", "shot | \n", "gun | \n", "53.0 | \n", "M | \n", "A | \n", "Shelton | \n", "WA | \n", "True | \n", "attack | \n", "Not fleeing | \n", "False | \n", "-123.122 | \n", "47.247 | \n", "True | \n", "
1 | \n", "4 | \n", "Lewis Lee Lembke | \n", "2015-01-02 | \n", "shot | \n", "gun | \n", "47.0 | \n", "M | \n", "W | \n", "Aloha | \n", "OR | \n", "False | \n", "attack | \n", "Not fleeing | \n", "False | \n", "-122.892 | \n", "45.487 | \n", "True | \n", "
2 | \n", "5 | \n", "John Paul Quintero | \n", "2015-01-03 | \n", "shot and Tasered | \n", "unarmed | \n", "23.0 | \n", "M | \n", "H | \n", "Wichita | \n", "KS | \n", "False | \n", "other | \n", "Not fleeing | \n", "False | \n", "-97.281 | \n", "37.695 | \n", "True | \n", "
3 | \n", "8 | \n", "Matthew Hoffman | \n", "2015-01-04 | \n", "shot | \n", "toy weapon | \n", "32.0 | \n", "M | \n", "W | \n", "San Francisco | \n", "CA | \n", "True | \n", "attack | \n", "Not fleeing | \n", "False | \n", "-122.422 | \n", "37.763 | \n", "True | \n", "
4 | \n", "9 | \n", "Michael Rodriguez | \n", "2015-01-04 | \n", "shot | \n", "nail gun | \n", "39.0 | \n", "M | \n", "H | \n", "Evans | \n", "CO | \n", "False | \n", "attack | \n", "Not fleeing | \n", "False | \n", "-104.692 | \n", "40.384 | \n", "True | \n", "