Dataset Viewer
The dataset viewer is not available for this subset.
Cannot get the split names for the config 'default' of the dataset.
Exception:    SplitsNotFoundError
Message:      The split names could not be parsed from the dataset config.
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 286, in get_dataset_config_info
                  for split_generator in builder._split_generators(
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      StreamingDownloadManager(base_path=builder.base_path, download_config=download_config)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/harbor/harbor.py", line 171, in _split_generators
                  raise DataFilesNotFoundError("No task.toml or instruction.md files found")
              datasets.exceptions.DataFilesNotFoundError: No task.toml or instruction.md files found
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/split_names.py", line 68, in compute_split_names_from_streaming_response
                  for split in get_dataset_split_names(
                               ~~~~~~~~~~~~~~~~~~~~~~~^
                      path=dataset,
                      ^^^^^^^^^^^^^
                      config_name=config,
                      ^^^^^^^^^^^^^^^^^^^
                      token=hf_token,
                      ^^^^^^^^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 340, in get_dataset_split_names
                  info = get_dataset_config_info(
                      path,
                  ...<6 lines>...
                      **config_kwargs,
                  )
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 291, in get_dataset_config_info
                  raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
              datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

ICE detention-management statistics

Published aggregate statistics on ICE detention and alternatives to detention, processed by the Deportation Data Project. The 22 tables cover detention populations, book-ins and book-outs, facilities, stay lengths, bonds and alternative-to-detention programs. Source files extend through July 20, 2026, with pulls through July 2026. Tables mix snapshots, monthly series, fiscal-year-to-date totals and averages; they are not individual detention records and must not be summed indiscriminately across dates.

Start querying

Read the latest recorded fiscal-year-to-date total book-ins for each year, retaining its pull date. Do not add successive YTD totals; book-ins are not unique people.

The window step keeps the newest recorded total for each fiscal year. n_book_ins_ytd counts book-ins, pull_date is the source extract date, and fiscal_year labels the source workbook year.

Choose R or Python. Install datapond once: use install.packages("datapond") in R, or run python -m pip install datapond in a terminal.

R

library(datapond)
con <- dp_connect("ice-detention-management")
tryCatch({
  DBI::dbExecute(con, "SET threads=1")
  DBI::dbExecute(con, "SET memory_limit='128MiB'")
  DBI::dbExecute(con, "SET max_temp_directory_size='0B'")
  print(DBI::dbGetQuery(con, "SELECT fiscal_year,pull_date,n_book_ins_ytd FROM dtm_book_ins_by_arresting_agency_fy_ytd WHERE arresting_agency='Total' QUALIFY row_number() OVER(PARTITION BY fiscal_year ORDER BY pull_date DESC,file_date DESC)=1 ORDER BY fiscal_year DESC LIMIT 3"))
}, finally = dp_disconnect(con))

Python

import datapond
con = datapond.connect('ice-detention-management')
try:
    con.execute("SET threads=1")
    con.execute("SET memory_limit='128MiB'")
    con.execute("SET max_temp_directory_size='0B'")
    print(con.execute("""SELECT fiscal_year,pull_date,n_book_ins_ytd FROM dtm_book_ins_by_arresting_agency_fy_ytd WHERE arresting_agency='Total' QUALIFY row_number() OVER(PARTITION BY fiscal_year ORDER BY pull_date DESC,file_date DESC)=1 ORDER BY fiscal_year DESC LIMIT 3""").fetchall())
finally:
    con.close()

Queries run on your computer and read the byte ranges they need. A small result can still require a large scan. These examples limit DuckDB to one thread and a 128 MiB buffer pool with disk spill disabled; that is not a limit on the entire R or Python process. Larger analyses may need more memory or a local download with enough disk space.

Tables, fields and joins

Frozen Datapond snapshot: 22 data tables, 58,810 stored source rows. The dataset identifier is available in the live Datapond catalog. Row totals mix table units and are not unique people, events or places.

See the data dictionary for column definitions.

snapshot means retained release versions; latest_cell means the latest reported value for each series/time combination. Twelve tables retain snapshots and ten retain latest cells. ADP means average daily population (people), ALOS is average length of stay (days), ALIP is average length in the alternatives-to-detention program (days), and AOR is area of responsibility. ICLOS is a source section label: retain its section, population_type, duration bucket and mid/end-month period when interpreting its population counts.

Book-ins, book-outs and removals

Table Rows Unit How versions are retained
dtm_book_ins_by_arresting_agency_fy_ytd 387 FY-to-date count of book-ins by ICE/CBP/Total snapshot
dtm_book_ins_by_arresting_agency_monthly 282 Monthly book-in count by ICE/CBP/Total latest_cell
dtm_book_outs_by_reason_fy_ytd 4,521 FY-to-date final release/book-out count by reason and criminality snapshot
dtm_book_outs_by_reason_monthly 2,606 Monthly final release/book-out count by reason and criminality latest_cell
dtm_movements_by_facility_type 1,875 FY-to-date book-in/book-out counts by facility type; book-outs only have Total criminality snapshot
dtm_removals 128 FY-to-date removal counts including family-unit removals; not individual-removal events snapshot

Detention populations and durations

Table Rows Unit How versions are retained
dtm_adp_and_stay_length_by_agency_fy_ytd 1,551 FY-to-date average daily population (people) and mean stay length (days) snapshot
dtm_adp_and_stay_length_by_agency_monthly 1,164 Monthly average daily population (people) and mean stay length (days) latest_cell
dtm_currently_detained_by_criminality 1,536 Detained population count and arresting-agency share within each criminality category (fraction; source rounding retained) snapshot
dtm_currently_detained_by_disposition 1,738 Current detention population count by processing disposition and facility type snapshot
dtm_iclos_and_detainees 1,665 Mid/end-month population count by ICLOS/detainees section and duration bucket latest_cell
dtm_fear_decision_time 21 Time from USCIS fear decision to ICE release (days), fiscal-year/facility-type series latest_cell
dtm_fear_decisions_by_facility_type 348 Current detained count in fear-decision source table by facility type snapshot

Facilities, placements and special populations

Table Rows Unit How versions are retained
dtm_facilities 20,430 Facility-by-release characteristics: beds, threat composition, inspection information; not the geocoded facility directory snapshot
dtm_facility_alos 2,045 Annual mean stay length (days) for named facility latest_cell
dtm_segregation 1,383 Monthly segregation-placement count per facility; placements are not unique people latest_cell
dtm_special_population_actions 468 Annual action counts for special populations; nullable country applies only to country tables latest_cell
dtm_vulnerable_population 114 Quarterly segregation placement counts and average consecutive/cumulative days for vulnerable populations latest_cell

Alternatives to detention and bonds

Table Rows Unit How versions are retained
dtm_atd_by_aor 14,657 Active alternative-to-detention participants and average days in program by AOR/technology; nullable technology is a subtotal snapshot
dtm_atd_court_appearances 462 Appearance count and percentage by hearing type and outcome; includes totals snapshot
dtm_atd_population 1,099 Active participants; technology rows report daily cost USD, status rows report average length in program (ALIP), in days snapshot
dtm_bond_stats 330 Counts, percent, USD average bond, or average length of stay (ALOS), in days, distinguished by unit latest_cell

Use the DICTIONARY.md series keys and dimensions before comparing tables. dtm_facilities has no verified natural key and retains _source_row, an ordinal within its pinned source file. No name-based join to microdata or the geocoded facility directory is supplied.

Facility composition and inspection fields retain changing source text layouts; no unsupported numeric scale or crosswalk is imposed.

Original source flags and text are not coerced into new numeric categories.

Scope and interpretation

This frozen source has maximum file_date July 20, 2026 and pull_date July 9 or 11, despite an October 27 repository commit. It is not current November statistics. Observation periods, source extraction dates, workbook publication dates and commit dates are different concepts.

Twelve tables retain release snapshots; ten retain the latest reported cell for their series key. Never sum FY-to-date snapshots, stock populations across dates, averages, or totals together with components. Totals coexist with detailed rows, and missing categories are not zero. Use the declared series dimensions and a single pull-date snapshot for comparisons. fiscal_year can describe the workbook; data_fiscal_year, alos_fiscal_year or date identifies the measured period when present.

Units vary among counts, USD, days and fractions. share_of_total divides each arresting agency's count by the combined ICE+CBP population within that criminality category and pull date. It is not the criminality composition within an agency. The bond_pct series is labelled percent upstream but stores fractions (observed 0.0234378 to 0.279019); ATD court pct values are also fractions (observed about 0.00543 to 1). Convert to percentage points explicitly for display. Seven upstream ATD average-length-in-program values are negative (minimum -7); they are preserved as source anomalies, not meaningful negative durations. Flag or exclude them explicitly for duration analysis.

The upstream parser skips some corrupted sheets and omits zero ICLOS/bond cells as presumed placeholders. These omissions are retained; absence is not a measured zero. dtm_facilities is facility-by-release statistics, not the geocoded directory. No name-based join to microdata or the directory is supplied.

Other ways to connect

Download the database, browse its files, or inspect the reproducible source.

The first-use examples above use the live catalog. Local examples work with the downloaded snapshot.

Local DuckDB queries

import duckdb
con = duckdb.connect('ice-detention-management.duckdb', read_only=True,
                     config={'memory_limit':'128MiB','threads':'1'})
try:
    print(con.sql("SELECT fiscal_year, pull_date, n_book_ins_ytd FROM dtm_book_ins_by_arresting_agency_fy_ytd WHERE arresting_agency='Total' QUALIFY row_number() OVER (PARTITION BY fiscal_year ORDER BY pull_date DESC, file_date DESC)=1 ORDER BY fiscal_year DESC LIMIT 3").fetchall())
finally:
    con.close()
library(DBI)
con <- dbConnect(duckdb::duckdb(), dbdir='ice-detention-management.duckdb', read_only=TRUE)
tryCatch({
  dbExecute(con, "SET memory_limit='128MiB'")
  dbExecute(con, 'SET threads=1')
  print(dbGetQuery(con, "SELECT fiscal_year, pull_date, n_book_ins_ytd FROM dtm_book_ins_by_arresting_agency_fy_ytd WHERE arresting_agency='Total' QUALIFY row_number() OVER (PARTITION BY fiscal_year ORDER BY pull_date DESC, file_date DESC)=1 ORDER BY fiscal_year DESC LIMIT 3"))
}, finally=dbDisconnect(con, shutdown=TRUE))

Additional catalog connection examples

The first query above is the recommended package start. These retained alternatives run the same question through the live catalog.

import datapond
con = datapond.connect("ice-detention-management")
try:
    print(con.sql("SELECT fiscal_year, pull_date, n_book_ins_ytd FROM dtm_book_ins_by_arresting_agency_fy_ytd WHERE arresting_agency='Total' QUALIFY row_number() OVER (PARTITION BY fiscal_year ORDER BY pull_date DESC, file_date DESC)=1 ORDER BY fiscal_year DESC LIMIT 3").fetchall())
finally:
    con.close()
library(datapond)
con <- dp_connect("ice-detention-management")
tryCatch(print(DBI::dbGetQuery(con, "SELECT fiscal_year, pull_date, n_book_ins_ytd FROM dtm_book_ins_by_arresting_agency_fy_ytd WHERE arresting_agency='Total' QUALIFY row_number() OVER (PARTITION BY fiscal_year ORDER BY pull_date DESC, file_date DESC)=1 ORDER BY fiscal_year DESC LIMIT 3")), finally=DBI::dbDisconnect(con, shutdown=TRUE))

Sources and maintenance

Sources, license and provenance

Source: Deportation Data Project (public records and FOIA). License: CC0-1.0 data.

Every source byte hash, immutable URL and repository commit is in source-lock.json. Every row is retained; _source_row is added as an ordinal within the pinned member. Geometry, when present, is stored as WKB in geometry_wkb, with all original metadata in _geometry_metadata. _provenance, _metadata and _columns document the build.

Publisher: Deportation Data Project. Data license: CC0-1.0, as labelled by the publisher; see the retained license notes. Cite government data collated by the Deportation Data Project and the pinned source commit. Repository commit dates do not promise current observations or automatic refreshes.

Source transformation semantics were checked against the pinned publisher parser.

Snapshot SHA-256 b29a199fe88141973912af8b62a3c4d26dc0bf51f7ccc097a528176e385e9201 (10,498,048 bytes). The registry PR pins immutable Hugging Face revisions; a later main may refer to a newer snapshot.

Validation receipts

All 21 source-defined candidate keys are unique under NULL-aware grouping; dtm_facilities has no verified natural key and retains _source_row. All source rows/columns are preserved, including anomalies. Independent checks find no file_date before pull_date or observation date after pull_date. ICE plus CBP equals Total in the inspected 129 YTD and 94 monthly book-in series.

All 1,024 nonmissing share_of_total values match the ICE+CBP denominator described above within 0.005, reflecting source rounding.

Reproduce and refresh

Use Python 3.11 or newer in a dedicated environment. Install the exact tested dependencies with python -m pip install -r requirements.txt (or use the pinned uv source in pyproject.toml), then:

python acquire_sources.py
python build_database.py --validate-only --report fresh-validation.json
python build_database.py --output fresh-ice-detention-management.duckdb

Downloads are pinned, bounded and SHA-verified; existing source files are checked and reused. The importer preserves all source fields and compares every stored row with the input using symmetric EXCEPT ALL. It uses one thread, 128 MiB DuckDB memory, no spill, a 32 MiB working-file cap and a 512 MiB physical free-space reserve. A watchdog interrupts work when a budget is crossed. Builds are private until complete; hard-link publication refuses an existing final database, manifest or orphan WAL path. Synchronous checks enforce the working-file cap and physical reserve after close and before publication; hash checks remain enabled under optimized Python. Failed/private files remain for inspection, with no cleanup of unrelated work. Peak process memory can exceed DuckDB's buffer limit.

To refresh, review the publisher's changed files and definitions, update pins and expected schemas/counts, run full source checks and Python/R smoke tests, and audit both data and documentation. No scheduled or unattended refresh is configured.

Validation commands: python -m unittest -v test_safety.py and python run_smoke.py --python /path/to/python --rscript /path/to/Rscript --r-library /path/to/R/library. The latter needs the released Python and R datapond packages and an already installed HTTPFS extension. It uses only localhost and this database. See VALIDATION.md for the executed versions and results.

Public Datapond identifier ice-detention-management is available in the live catalog. The smoke scripts use an isolated localhost registry, never a global registry edit.

The retained build smoke scripts use an isolated registry with the same database.

Downloads last month
94