Nason commited on
Commit
31534b6
·
verified ·
1 Parent(s): 43e8957

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +55 -0
README.md ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc0-1.0
3
+ task_categories:
4
+ - tabular-classification
5
+ - tabular-regression
6
+ tags:
7
+ - immigration
8
+ - border
9
+ - cbp
10
+ - foia
11
+ - deportation-data-project
12
+ - duckdb
13
+ - datapond
14
+ pretty_name: CBP Border Enforcement Database (Deportation Data Project FOIA releases)
15
+ size_categories:
16
+ - 10M<n<100M
17
+ ---
18
+
19
+ # CBP Border Enforcement Database
20
+
21
+ Individual-level Customs and Border Protection records obtained by the Deportation
22
+ Data Project through FOIA litigation: Border Patrol apprehensions (FY2008-Dec 2025),
23
+ apprehensions with place of birth (FY2000-FY2022), encounters, Office of Field
24
+ Operations inadmissibility events at ports of entry (CY2014-Jan 2026), Title 42
25
+ expulsions and CBP One appointments. 121 release files harmonised into one schema
26
+ per record type; overlapping release windows resolved into a non-overlapping base
27
+ tiling (see `_files`).
28
+ **51,345,742 rows across 8 tables.**
29
+
30
+ | Table | Description | Row Count | Column Count |
31
+ |---|---|---|---|
32
+ | `apprehensions_origin` | Border Patrol apprehensions with place of birth (country/state/city), one row per apprehension, FY2000 - FY2022 | 16,719,589 | 16 |
33
+ | `inadmissibles` | Office of Field Operations events where a person arriving at a port of entry was deemed inadmissible, one row per event, CY2014 - Jan 2026 | 11,591,432 | 35 |
34
+ | `apprehensions` | Border Patrol apprehensions between ports of entry, one row per person apprehended (FOIA releases covering Oct 2007 - Dec 2025; monthly gaps where CBP has not yet released data) | 7,907,911 | 74 |
35
+ | `encounters` | Border Patrol encounters (apprehensions with prior-encounter history and seizure fields), FY2010 - FY2018 and Oct 2022 - Sep 2024 | 7,164,459 | 38 |
36
+ | `inadmissibles_superseded` | Rows from inadmissibles release files whose windows overlap the base tiling (see _files.superseded_reason); same schema as inadmissibles | 5,634,463 | 41 |
37
+ | `title42_expulsions` | Title 42 expulsions by Border Patrol, one row per expulsion, FY2020 - FY2022 | 1,976,471 | 24 |
38
+ | `cbp_one` | CBP One app appointments at ports of entry, individual-level extract, Jan 12 - Oct 31 2023 | 323,686 | 19 |
39
+ | `cbp_one_monthly` | CBP One monthly appointment counts by port of entry and citizenship (five overlapping FOIA extracts; see source_file) | 27,731 | 19 |
40
+
41
+ ## Query it remotely
42
+
43
+ ```sql
44
+ INSTALL httpfs; LOAD httpfs;
45
+ ATTACH 'https://huggingface.co/datasets/Nason/cbp-database/resolve/main/cbp.duckdb' AS cbp (READ_ONLY);
46
+
47
+ SELECT EXTRACT(YEAR FROM event_datetime) AS year, citizenship, COUNT(*) AS apprehensions
48
+ FROM cbp.apprehensions WHERE event_datetime >= '2023-01-01'
49
+ GROUP BY 1, 2 ORDER BY 3 DESC LIMIT 20;
50
+ ```
51
+
52
+ Or with the datapond packages: `pip install datapond` / `pak::pak("datapond-db/datapond-r")`.
53
+
54
+ Build pipeline, header crosswalk, tiling decisions and caveats: https://github.com/ian-nason/cbp-database
55
+ Source: https://deportationdata.org/data/cbp.html (CC0).