{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Beat Populations\n", "\n", "Link census tract populations, total and by race, into police beats. Attributes population from tracts to beats by the areas of the overlaps. The basic procedure is to find the overlaps between beats and Census tracts, then addign a portion of the population of the tract to the beat, based on the raio of the size of overlap to the size of the tract. " ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import seaborn as sns\n", "import metapack as mp\n", "import pandas as pd\n", "import geopandas as gpd\n", "import numpy as np\n", "import matplotlib.pyplot as plt\n", "from IPython.display import display \n", "import utm\n", "\n", "%matplotlib inline\n", "sns.set_context('notebook')\n" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "

San Diego Police Regions and Demographics

\n", "

sandiego.gov-police_regions-2.1.2 Last Update: 2021-02-25T19:07:59

\n", "

Boundary shapes for San Diego neighborhoods, beats and divisions, with ACS 2019 estimates for populations, by race.

\n", "

This package links shapefiles for San Diego police beats to Census tracts and\n", "merges in ACS estimates for population, by race, from the 2016 5 year ACS. When\n", "a police beat boundry crosses a tract, the tract population is allocated to\n", "beats by the proportion of the overlap by area. See the Jupyter\n", "notebook that\n", "performs the procedure for details.

\n", "

For the race/ethicty statistics, Hispanic ('hisp') refers to Hispanics of any\n", "race, while all other races refer to non-Hispanics of that race.

\n", "

Documentation Links

\n", "\n", "

Notes

\n", "\n", "

Contacts

\n", "\n", "

Resources

\n", "\n", "

References

\n", "