malelew / USBP_Sector_Profiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

United Stated Border Patrol Sector Profiles

The Sector Profiles the US Border Patrol is released for each Fiscal Year containing statistics releated to border staffing, apprehensions, and seizures.

This repository was created to update the statistics for the Border Wall project at San Diego non-profit news organization inewsource.org. This is also my first test of a completely programtic scrape and clean of a dataset.

The current workflow scrapes the first table in each fiscal year's PDF and specifically focuses on the apprehensions and agent staffing at the southern border.

2017 Southern Border Apprehensions and Staffing Statistics by Sector:

chart1

chart2

chart3

chart4

Workflow for replicating the tasks:

  1. run camelot_scrape.py in sector_profiles directory

  2. run cleaning.py in camelot_scrape directory

  3. run cleaning_analysis.py in sheets/camelot_scrape directory

About


Languages

Language:Python 100.0%