Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    CastError
Message:      Couldn't cast
id: string
data_license: string
downloads: list<item: struct<url: string, bytes: int64, sha256: string, local_path: string>>
  child 0, item: struct<url: string, bytes: int64, sha256: string, local_path: string>
      child 0, url: string
      child 1, bytes: int64
      child 2, sha256: string
      child 3, local_path: string
tables: list<item: struct<table: string, rows: int64, file: string, local_path: string, bytes: int64, sha256 (... 198 chars omitted)
  child 0, item: struct<table: string, rows: int64, file: string, local_path: string, bytes: int64, sha256: string, s (... 186 chars omitted)
      child 0, table: string
      child 1, rows: int64
      child 2, file: string
      child 3, local_path: string
      child 4, bytes: int64
      child 5, sha256: string
      child 6, source: struct<repo: string, commit: string, path: string, url: string, bytes: int64, sha256: string, data_l (... 36 chars omitted)
          child 0, repo: string
          child 1, commit: string
          child 2, path: string
          child 3, url: string
          child 4, bytes: int64
          child 5, sha256: string
          child 6, data_license: string
          child 7, hash_verified: bool
      child 7, unit: string
      child 8, temporal_semantics: string
status: string
database_sha256: string
built_utc: string
working_budget_bytes: int64
physical_free_before: int64
final_budget_check: struct<work_bytes: int64, free_bytes: int64>
  child 0, work_bytes: int64
  child 1, free_bytes: int64
source_hashes_verified: bool
config: struct<memory_limit: string, threads: string, max_temp_directory_size: string, preserve_insertion_or (... 50 chars omitted)
  child 0, memory_limit: string
  child 1, threads: string
  child 2, max_temp_directory_size: string
  child 3, preserve_insertion_order: string
  child 4, autoinstall_known_extensions: string
duckdb: string
physical_free_after: int64
dataset: string
reserve_bytes: int64
validate_only: bool
database_bytes: int64
to
{'dataset': Value('string'), 'built_utc': Value('string'), 'validate_only': Value('bool'), 'config': {'memory_limit': Value('string'), 'threads': Value('string'), 'max_temp_directory_size': Value('string'), 'preserve_insertion_order': Value('string'), 'autoinstall_known_extensions': Value('string')}, 'physical_free_before': Value('int64'), 'reserve_bytes': Value('int64'), 'working_budget_bytes': Value('int64'), 'tables': {'facilities': {'rows': Value('int64'), 'schema': List(List(Value('string'))), 'null_counts': {'_source_row': Value('int64'), 'detention_facility_code': Value('int64'), 'name': Value('int64'), 'address': Value('int64'), 'city': Value('int64'), 'county': Value('int64'), 'county_fips_code': Value('int64'), 'core_based_statistical_area': Value('int64'), 'core_based_statistical_area_code': Value('int64'), 'core_based_statistical_area_type': Value('int64'), 'combined_statistical_area': Value('int64'), 'combined_statistical_area_code': Value('int64'), 'state': Value('int64'), 'state_fips_code': Value('int64'), 'zip': Value('int64'), 'address_full': Value('int64'), 'latitude': Value('int64'), 'longitude': Value('int64'), 'field_office': Value('int64'), 'federal_court_district_of_confinement': Value('int64'), 'federal_court_circuit_of_confinement': Value('int64')}, 'source_equality_differences': Value('int64'), 'source_ordinal_differences': Value('int64'), 'unit': Value('string'), 'temporal_semantics': Value('string'), 'candidate_key': Value('null'), 'date_ranges': {
...
e('int64')}, 'source_equality_differences': Value('int64'), 'source_ordinal_differences': Value('int64'), 'unit': Value('string'), 'temporal_semantics': Value('string'), 'candidate_key': Value('null'), 'empty_geometry': Value('int64'), 'wkb_roundtrip_differences': Value('int64'), 'date_ranges': {}}, 'county_aor': {'rows': Value('int64'), 'schema': List(List(Value('string'))), 'null_counts': {'_source_row': Value('int64'), 'STATEFP': Value('int64'), 'COUNTYFP': Value('int64'), 'COUNTYNS': Value('int64'), 'GEOIDFQ': Value('int64'), 'GEOID': Value('int64'), 'NAME': Value('int64'), 'NAMELSAD': Value('int64'), 'STUSPS': Value('int64'), 'STATE_NAME': Value('int64'), 'LSAD': Value('int64'), 'ALAND': Value('int64'), 'AWATER': Value('int64'), 'office_name': Value('int64'), 'notes': Value('int64'), 'area_of_responsibility_name': Value('int64'), 'geometry_wkb': Value('int64')}, 'source_equality_differences': Value('int64'), 'source_ordinal_differences': Value('int64'), 'unit': Value('string'), 'temporal_semantics': Value('string'), 'candidate_key': Value('null'), 'empty_geometry': Value('int64'), 'wkb_roundtrip_differences': Value('int64'), 'date_ranges': {}, 'duplicate_nonnull_geoids': Value('int64')}}, 'source_hashes_verified': Value('bool'), 'duckdb': Value('string'), 'status': Value('string'), 'physical_free_after': Value('int64'), 'database_bytes': Value('int64'), 'database_sha256': Value('string'), 'final_budget_check': {'work_bytes': Value('int64'), 'free_bytes': Value('int64')}}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 149, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 129, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 544, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3052, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2559, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2584, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 558, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 440, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 361, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2381, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2309, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              id: string
              data_license: string
              downloads: list<item: struct<url: string, bytes: int64, sha256: string, local_path: string>>
                child 0, item: struct<url: string, bytes: int64, sha256: string, local_path: string>
                    child 0, url: string
                    child 1, bytes: int64
                    child 2, sha256: string
                    child 3, local_path: string
              tables: list<item: struct<table: string, rows: int64, file: string, local_path: string, bytes: int64, sha256 (... 198 chars omitted)
                child 0, item: struct<table: string, rows: int64, file: string, local_path: string, bytes: int64, sha256: string, s (... 186 chars omitted)
                    child 0, table: string
                    child 1, rows: int64
                    child 2, file: string
                    child 3, local_path: string
                    child 4, bytes: int64
                    child 5, sha256: string
                    child 6, source: struct<repo: string, commit: string, path: string, url: string, bytes: int64, sha256: string, data_l (... 36 chars omitted)
                        child 0, repo: string
                        child 1, commit: string
                        child 2, path: string
                        child 3, url: string
                        child 4, bytes: int64
                        child 5, sha256: string
                        child 6, data_license: string
                        child 7, hash_verified: bool
                    child 7, unit: string
                    child 8, temporal_semantics: string
              status: string
              database_sha256: string
              built_utc: string
              working_budget_bytes: int64
              physical_free_before: int64
              final_budget_check: struct<work_bytes: int64, free_bytes: int64>
                child 0, work_bytes: int64
                child 1, free_bytes: int64
              source_hashes_verified: bool
              config: struct<memory_limit: string, threads: string, max_temp_directory_size: string, preserve_insertion_or (... 50 chars omitted)
                child 0, memory_limit: string
                child 1, threads: string
                child 2, max_temp_directory_size: string
                child 3, preserve_insertion_order: string
                child 4, autoinstall_known_extensions: string
              duckdb: string
              physical_free_after: int64
              dataset: string
              reserve_bytes: int64
              validate_only: bool
              database_bytes: int64
              to
              {'dataset': Value('string'), 'built_utc': Value('string'), 'validate_only': Value('bool'), 'config': {'memory_limit': Value('string'), 'threads': Value('string'), 'max_temp_directory_size': Value('string'), 'preserve_insertion_order': Value('string'), 'autoinstall_known_extensions': Value('string')}, 'physical_free_before': Value('int64'), 'reserve_bytes': Value('int64'), 'working_budget_bytes': Value('int64'), 'tables': {'facilities': {'rows': Value('int64'), 'schema': List(List(Value('string'))), 'null_counts': {'_source_row': Value('int64'), 'detention_facility_code': Value('int64'), 'name': Value('int64'), 'address': Value('int64'), 'city': Value('int64'), 'county': Value('int64'), 'county_fips_code': Value('int64'), 'core_based_statistical_area': Value('int64'), 'core_based_statistical_area_code': Value('int64'), 'core_based_statistical_area_type': Value('int64'), 'combined_statistical_area': Value('int64'), 'combined_statistical_area_code': Value('int64'), 'state': Value('int64'), 'state_fips_code': Value('int64'), 'zip': Value('int64'), 'address_full': Value('int64'), 'latitude': Value('int64'), 'longitude': Value('int64'), 'field_office': Value('int64'), 'federal_court_district_of_confinement': Value('int64'), 'federal_court_circuit_of_confinement': Value('int64')}, 'source_equality_differences': Value('int64'), 'source_ordinal_differences': Value('int64'), 'unit': Value('string'), 'temporal_semantics': Value('string'), 'candidate_key': Value('null'), 'date_ranges': {
              ...
              e('int64')}, 'source_equality_differences': Value('int64'), 'source_ordinal_differences': Value('int64'), 'unit': Value('string'), 'temporal_semantics': Value('string'), 'candidate_key': Value('null'), 'empty_geometry': Value('int64'), 'wkb_roundtrip_differences': Value('int64'), 'date_ranges': {}}, 'county_aor': {'rows': Value('int64'), 'schema': List(List(Value('string'))), 'null_counts': {'_source_row': Value('int64'), 'STATEFP': Value('int64'), 'COUNTYFP': Value('int64'), 'COUNTYNS': Value('int64'), 'GEOIDFQ': Value('int64'), 'GEOID': Value('int64'), 'NAME': Value('int64'), 'NAMELSAD': Value('int64'), 'STUSPS': Value('int64'), 'STATE_NAME': Value('int64'), 'LSAD': Value('int64'), 'ALAND': Value('int64'), 'AWATER': Value('int64'), 'office_name': Value('int64'), 'notes': Value('int64'), 'area_of_responsibility_name': Value('int64'), 'geometry_wkb': Value('int64')}, 'source_equality_differences': Value('int64'), 'source_ordinal_differences': Value('int64'), 'unit': Value('string'), 'temporal_semantics': Value('string'), 'candidate_key': Value('null'), 'empty_geometry': Value('int64'), 'wkb_roundtrip_differences': Value('int64'), 'date_ranges': {}, 'duplicate_nonnull_geoids': Value('int64')}}, 'source_hashes_verified': Value('bool'), 'duckdb': Value('string'), 'status': Value('string'), 'physical_free_after': Value('int64'), 'database_bytes': Value('int64'), 'database_sha256': Value('string'), 'final_budget_check': {'work_bytes': Value('int64'), 'free_bytes': Value('int64')}}
              because column names don't match

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 facility, office and jurisdiction references

Frozen Datapond snapshot: 4 data tables, 4,410 stored source rows, 26,226,688 bytes. The catalog identifier requires separate registry integration. Row totals mix table units and are not unique people, events or places.

Table Rows Unit Time semantics
facilities 878 One detention-facility directory record; not a detention event or historical facility panel reference snapshot, not historical panel
offices 275 One office directory record across ERO, HSI and other listed agencies; not an ERO-only jurisdiction reference snapshot, not historical panel
aor 26 One ERO area-of-responsibility record; 25 geographic areas plus one nongeographic HQ placeholder reference snapshot, not historical panel
county_aor 3,231 One county-to-ERO-area assignment record; 3,230 county records plus one nongeographic HQ placeholder reference snapshot, not historical panel

Source, scope and limitations

Facility scope starts with locations used since January 2025 plus newly listed sites; it is not a complete historical directory. Source observation vintages vary. The facility repository commit is October 20, 2026, and the office repository commit is April 21, 2026. Neither is a universal observation date.

The facility table preserves one NULL detention_facility_code and 75 missing coordinate pairs. Use _source_row as a pinned-file row reference, not a cross-release entity key. Preserve leading zeros in ZIP/FIPS/GEOID. Office fields are office_type, latitude and longitude; six obsolete population-summary fields from older facility documentation are absent from this payload.

AOR and county-AOR geometry is retained as WKB with NAD83 EPSG:4269 metadata, despite older codebook prose naming EPSG:4326. No coordinates are transformed or relabelled. Each geography table retains its nongeographic HQ placeholder; exclude it explicitly when analyzing geographic coverage. Do not silently drop source rows merely because a county or office name is NULL.

The office directory includes ERO, HSI and other agencies. Its AOR geography tables describe ERO responsibility only, not HSI territories or a historical boundary panel. The source office lists are described as September 2025 and county geometry derives from Census 2024 boundaries. Harlingen's FY2022 split and other source boundary caveats matter for time-specific joins. Facility codes need release/year coverage checks before LEFT JOINs to detention events. Office-name variants require an explicit reviewed crosswalk; no fuzzy link or legal-venue inference is supplied.

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. DICTIONARY.md records types, exact NULL counts, units and time semantics. Original source flags and text are not coerced into new numeric categories.

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.

Local queries

import duckdb
con = duckdb.connect('ice-reference.duckdb', read_only=True,
                     config={'memory_limit':'128MiB','threads':'1'})
try:
    print(con.sql('SELECT state, count(*) AS facilities FROM facilities GROUP BY state ORDER BY facilities DESC, state LIMIT 5').fetchall())
finally:
    con.close()
library(DBI)
con <- dbConnect(duckdb::duckdb(), dbdir='ice-reference.duckdb', read_only=TRUE)
tryCatch({
  dbExecute(con, "SET memory_limit='128MiB'")
  dbExecute(con, 'SET threads=1')
  print(dbGetQuery(con, "SELECT state, count(*) AS facilities FROM facilities GROUP BY state ORDER BY facilities DESC, state LIMIT 5"))
}, finally=dbDisconnect(con, shutdown=TRUE))

Public datapond identifier ice-reference requires a future approved catalog release. The smoke scripts use an isolated localhost registry, never a global registry edit.

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-reference.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 128 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.

Source documentation: facilities and offices/AORs. Actual pinned schemas and CRS override the older codebook discrepancies described above. Office names alone are not unique; the current (agency, office_type, office_name, address_full) combination is unique. Each geography table has one empty MULTIPOLYGON for HQ and no SQL-NULL geometry.

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.

Snapshot files

Download the database, browse its files, or inspect the reproducible source. Verify the snapshot SHA-256 c0c6f79bea8ad54e84c29103a7d854b68a381d931e104e2a3ccc03c1c80d70a5 (26,226,688 bytes). The registry PR pins immutable Hugging Face revisions; a later main may refer to a newer snapshot.

Once the separate catalog entry is merged, use the released clients:

import datapond
con = datapond.connect("ice-reference")
try:
    print(con.sql("SELECT state, count(*) AS facilities FROM facilities GROUP BY state ORDER BY facilities DESC, state LIMIT 5").fetchall())
finally:
    con.close()
library(datapond)
con <- dp_connect("ice-reference")
tryCatch(print(DBI::dbGetQuery(con, "SELECT state, count(*) AS facilities FROM facilities GROUP BY state ORDER BY facilities DESC, state LIMIT 5")), finally=DBI::dbDisconnect(con, shutdown=TRUE))

Until catalog integration, the local Python/R examples above work with the downloaded snapshot. The smoke scripts exercise both released clients with an isolated registry and this same database.

Downloads last month
67