Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- tabular-classification
|
| 5 |
+
- tabular-regression
|
| 6 |
+
tags:
|
| 7 |
+
- immigration
|
| 8 |
+
- ice
|
| 9 |
+
- enforcement
|
| 10 |
+
- deportation
|
| 11 |
+
- detention
|
| 12 |
+
- foia
|
| 13 |
+
- duckdb
|
| 14 |
+
- legal
|
| 15 |
+
- policy
|
| 16 |
+
- government-data
|
| 17 |
+
pretty_name: ICE Enforcement Database
|
| 18 |
+
size_categories:
|
| 19 |
+
- 10M<n<100M
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# ICE Enforcement Database
|
| 23 |
+
|
| 24 |
+
A clean, queryable DuckDB database built from ICE enforcement data published by the [Deportation Data Project](https://law.ucla.edu/academics/centers/center-immigration-law-and-policy/deportation-data-project) (Berkeley Law / UCLA) via FOIA litigation.
|
| 25 |
+
|
| 26 |
+
**17,824,184 rows** across **5 tables** covering ICE arrests, detainers, detentions, removals, and custody decisions.
|
| 27 |
+
|
| 28 |
+
Combines two FOIA releases:
|
| 29 |
+
- **2023 release** (FY2012-FY2023): arrests, detentions, removals, RCA decisions
|
| 30 |
+
- **2025 settlement release** (Sep 2023 - Oct 2025): arrests, detainers, detentions
|
| 31 |
+
|
| 32 |
+
Every row has a `data_source` column (`release_2023` or `release_2025`) so you can filter by release. Overlapping records are deduplicated, preferring the richer 2025 data.
|
| 33 |
+
|
| 34 |
+
Built with [ice-database](https://github.com/ian-nason/ice-database).
|
| 35 |
+
|
| 36 |
+
## Quick Start
|
| 37 |
+
|
| 38 |
+
### DuckDB CLI
|
| 39 |
+
|
| 40 |
+
```sql
|
| 41 |
+
INSTALL httpfs;
|
| 42 |
+
LOAD httpfs;
|
| 43 |
+
ATTACH 'https://huggingface.co/datasets/Nason/ice-database/resolve/main/ice.duckdb' AS ice (READ_ONLY);
|
| 44 |
+
|
| 45 |
+
-- Arrests by month
|
| 46 |
+
SELECT DATE_TRUNC('month', apprehension_date) AS month, COUNT(*) AS arrests
|
| 47 |
+
FROM ice.arrests
|
| 48 |
+
WHERE apprehension_date IS NOT NULL
|
| 49 |
+
GROUP BY 1 ORDER BY 1 DESC LIMIT 12;
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
### Python
|
| 53 |
+
|
| 54 |
+
```python
|
| 55 |
+
import duckdb
|
| 56 |
+
con = duckdb.connect()
|
| 57 |
+
con.sql("INSTALL httpfs; LOAD httpfs;")
|
| 58 |
+
con.sql(\"\"\"
|
| 59 |
+
ATTACH 'https://huggingface.co/datasets/Nason/ice-database/resolve/main/ice.duckdb'
|
| 60 |
+
AS ice (READ_ONLY)
|
| 61 |
+
\"\"\")
|
| 62 |
+
con.sql("SELECT * FROM ice._metadata").show()
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
DuckDB uses HTTP range requests, so only the pages needed for your query are downloaded.
|
| 66 |
+
|
| 67 |
+
## Tables
|
| 68 |
+
|
| 69 |
+
| Table | Description | Rows | Cols | Sources | Date Range |
|
| 70 |
+
|-------|-------------|------|------|---------|------------|
|
| 71 |
+
| `detentions` | Detention stays (book-in to book-out) | 8,944,408 | 41 | release_2023, release_2025 | 1995-08-31 to 2025-10-16 |
|
| 72 |
+
| `rca_decisions` | Release/custody assessment decision history | 3,543,467 | 42 | release_2023 | |
|
| 73 |
+
| `removals` | Deportation/removal records | 2,771,219 | 29 | release_2023 | 0212-06-29 to 2023-10-27 |
|
| 74 |
+
| `arrests` | ICE administrative arrests | 2,168,784 | 23 | release_2023, release_2025 | 2011-10-01 to 2025-10-16 |
|
| 75 |
+
| `detainers` | Detainer requests issued to jails/prisons | 396,306 | 63 | release_2025 | 1989-09-25 to 2025-10-15 |
|
| 76 |
+
|
| 77 |
+
## Key Features
|
| 78 |
+
|
| 79 |
+
### Linked Records
|
| 80 |
+
Tables share a `unique_id` field for tracing individuals across the enforcement pipeline: arrests -> detainers -> detentions -> removals.
|
| 81 |
+
|
| 82 |
+
### Pre-built Views
|
| 83 |
+
- `v_arrest_to_detention` - Arrests joined to detention stays
|
| 84 |
+
- `v_enforcement_pipeline` - Full pipeline: arrest -> detention -> removal
|
| 85 |
+
- `v_daily_arrests` - Daily arrest counts by data source
|
| 86 |
+
|
| 87 |
+
### Multi-release Deduplication
|
| 88 |
+
Where both releases cover the same period, records are deduplicated on key fields (unique_id + date + facility) with the richer 2025 release preferred.
|
| 89 |
+
|
| 90 |
+
## Data Source
|
| 91 |
+
|
| 92 |
+
[Deportation Data Project](https://law.ucla.edu/academics/centers/center-immigration-law-and-policy/deportation-data-project) (Berkeley Law / UCLA). Data obtained through FOIA litigation against ICE.
|
| 93 |
+
|
| 94 |
+
## License
|
| 95 |
+
|
| 96 |
+
Database build code: MIT. Underlying data: public domain (U.S. government records released via FOIA).
|
| 97 |
+
|
| 98 |
+
## GitHub
|
| 99 |
+
|
| 100 |
+
Full source code, build instructions, and example queries: [github.com/ian-nason/ice-database](https://github.com/ian-nason/ice-database)
|