The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: CastError
Message: Couldn't cast
url: string
bytes: int64
sha256: string
retrieved_utc: string
headers: struct<Content-Length: string, Last-Modified: string>
child 0, Content-Length: string
child 1, Last-Modified: string
members: list<item: struct<name: string, bytes: int64, crc32: int64>>
child 0, item: struct<name: string, bytes: int64, crc32: int64>
child 0, name: string
child 1, bytes: int64
child 2, crc32: int64
duckdb: string
null_counts: struct<nipr: int64, nipr_moe: int64, nui: int64, nui_moe: int64, nic: int64, nic_moe: int64, pctui: (... 128 chars omitted)
child 0, nipr: int64
child 1, nipr_moe: int64
child 2, nui: int64
child 3, nui_moe: int64
child 4, nic: int64
child 5, nic_moe: int64
child 6, pctui: int64
child 7, pctui_moe: int64
child 8, pctic: int64
child 9, pctic_moe: int64
child 10, pctelig: int64
child 11, pctelig_moe: int64
child 12, pctliic: int64
child 13, pctliic_moe: int64
output: string
built_utc: string
sample: bool
tables: struct<estimates: int64, geographies: int64, category_codes: int64>
child 0, estimates: int64
child 1, geographies: int64
child 2, category_codes: int64
source_rows: int64
source: struct<url: string, bytes: int64, sha256: string, retrieved_utc: string, headers: struct<Content-Len (... 107 chars omitted)
child 0, url: string
child 1, bytes: int64
child 2, sha256: string
child 3, retrieved_utc: string
child 4, headers: struct<Content-Length: string, Last-Modified: string>
child 0, Content-L
...
ol
child 14, eligible_vs_within_income: struct<actual: int64, expected: int64, passed: bool>
child 0, actual: int64
child 1, expected: int64
child 2, passed: bool
child 15, all_income_denominator: struct<actual: int64, expected: int64, passed: bool>
child 0, actual: int64
child 1, expected: int64
child 2, passed: bool
child 16, complete_2024_rows: struct<actual: int64, expected: int64, passed: bool>
child 0, actual: int64
child 1, expected: int64
child 2, passed: bool
child 17, states: struct<actual: int64, expected: int64, passed: bool>
child 0, actual: int64
child 1, expected: int64
child 2, passed: bool
child 18, counties: struct<actual: int64, expected: int64, passed: bool>
child 0, actual: int64
child 1, expected: int64
child 2, passed: bool
child 19, county_view_grain: struct<actual: int64, expected: int64, passed: bool>
child 0, actual: int64
child 1, expected: int64
child 2, passed: bool
child 20, kalawao_missing: struct<actual: int64, expected: int64, passed: bool>
child 0, actual: int64
child 1, expected: int64
child 2, passed: bool
elapsed_seconds: double
config: struct<memory_limit: string, threads: string, max_temp_directory_size: string, preserve_insertion_or (... 12 chars omitted)
child 0, memory_limit: string
child 1, threads: string
child 2, max_temp_directory_size: string
child 3, preserve_insertion_order: string
to
{'built_utc': Value('string'), 'source': {'url': Value('string'), 'bytes': Value('int64'), 'sha256': Value('string'), 'retrieved_utc': Value('string'), 'headers': {'Content-Length': Value('string'), 'Last-Modified': Value('string')}, 'members': List({'name': Value('string'), 'bytes': Value('int64'), 'crc32': Value('int64')})}, 'source_rows': Value('int64'), 'sample': Value('bool'), 'tables': {'estimates': Value('int64'), 'geographies': Value('int64'), 'category_codes': Value('int64')}, 'null_counts': {'nipr': Value('int64'), 'nipr_moe': Value('int64'), 'nui': Value('int64'), 'nui_moe': Value('int64'), 'nic': Value('int64'), 'nic_moe': Value('int64'), 'pctui': Value('int64'), 'pctui_moe': Value('int64'), 'pctic': Value('int64'), 'pctic_moe': Value('int64'), 'pctelig': Value('int64'), 'pctelig_moe': Value('int64'), 'pctliic': Value('int64'), 'pctliic_moe': Value('int64')}, 'checks': {'source_row_count': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'unique_keys': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'nonmissing_keys': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'geography_consistency': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'under19_categories': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'count_identity': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')},
...
tual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'percentage_range': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'nonnegative_counts': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'geography_unique': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'all_income_percentages': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'eligible_vs_within_income': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'all_income_denominator': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'complete_2024_rows': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'states': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'counties': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'county_view_grain': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'kalawao_missing': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}}, 'output': Value('string'), 'bytes': Value('int64'), 'sha256': Value('string'), 'duckdb': Value('string'), 'config': {'memory_limit': Value('string'), 'threads': Value('string'), 'max_temp_directory_size': Value('string'), 'preserve_insertion_order': Value('string')}, 'elapsed_seconds': Value('float64')}
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
url: string
bytes: int64
sha256: string
retrieved_utc: string
headers: struct<Content-Length: string, Last-Modified: string>
child 0, Content-Length: string
child 1, Last-Modified: string
members: list<item: struct<name: string, bytes: int64, crc32: int64>>
child 0, item: struct<name: string, bytes: int64, crc32: int64>
child 0, name: string
child 1, bytes: int64
child 2, crc32: int64
duckdb: string
null_counts: struct<nipr: int64, nipr_moe: int64, nui: int64, nui_moe: int64, nic: int64, nic_moe: int64, pctui: (... 128 chars omitted)
child 0, nipr: int64
child 1, nipr_moe: int64
child 2, nui: int64
child 3, nui_moe: int64
child 4, nic: int64
child 5, nic_moe: int64
child 6, pctui: int64
child 7, pctui_moe: int64
child 8, pctic: int64
child 9, pctic_moe: int64
child 10, pctelig: int64
child 11, pctelig_moe: int64
child 12, pctliic: int64
child 13, pctliic_moe: int64
output: string
built_utc: string
sample: bool
tables: struct<estimates: int64, geographies: int64, category_codes: int64>
child 0, estimates: int64
child 1, geographies: int64
child 2, category_codes: int64
source_rows: int64
source: struct<url: string, bytes: int64, sha256: string, retrieved_utc: string, headers: struct<Content-Len (... 107 chars omitted)
child 0, url: string
child 1, bytes: int64
child 2, sha256: string
child 3, retrieved_utc: string
child 4, headers: struct<Content-Length: string, Last-Modified: string>
child 0, Content-L
...
ol
child 14, eligible_vs_within_income: struct<actual: int64, expected: int64, passed: bool>
child 0, actual: int64
child 1, expected: int64
child 2, passed: bool
child 15, all_income_denominator: struct<actual: int64, expected: int64, passed: bool>
child 0, actual: int64
child 1, expected: int64
child 2, passed: bool
child 16, complete_2024_rows: struct<actual: int64, expected: int64, passed: bool>
child 0, actual: int64
child 1, expected: int64
child 2, passed: bool
child 17, states: struct<actual: int64, expected: int64, passed: bool>
child 0, actual: int64
child 1, expected: int64
child 2, passed: bool
child 18, counties: struct<actual: int64, expected: int64, passed: bool>
child 0, actual: int64
child 1, expected: int64
child 2, passed: bool
child 19, county_view_grain: struct<actual: int64, expected: int64, passed: bool>
child 0, actual: int64
child 1, expected: int64
child 2, passed: bool
child 20, kalawao_missing: struct<actual: int64, expected: int64, passed: bool>
child 0, actual: int64
child 1, expected: int64
child 2, passed: bool
elapsed_seconds: double
config: struct<memory_limit: string, threads: string, max_temp_directory_size: string, preserve_insertion_or (... 12 chars omitted)
child 0, memory_limit: string
child 1, threads: string
child 2, max_temp_directory_size: string
child 3, preserve_insertion_order: string
to
{'built_utc': Value('string'), 'source': {'url': Value('string'), 'bytes': Value('int64'), 'sha256': Value('string'), 'retrieved_utc': Value('string'), 'headers': {'Content-Length': Value('string'), 'Last-Modified': Value('string')}, 'members': List({'name': Value('string'), 'bytes': Value('int64'), 'crc32': Value('int64')})}, 'source_rows': Value('int64'), 'sample': Value('bool'), 'tables': {'estimates': Value('int64'), 'geographies': Value('int64'), 'category_codes': Value('int64')}, 'null_counts': {'nipr': Value('int64'), 'nipr_moe': Value('int64'), 'nui': Value('int64'), 'nui_moe': Value('int64'), 'nic': Value('int64'), 'nic_moe': Value('int64'), 'pctui': Value('int64'), 'pctui_moe': Value('int64'), 'pctic': Value('int64'), 'pctic_moe': Value('int64'), 'pctelig': Value('int64'), 'pctelig_moe': Value('int64'), 'pctliic': Value('int64'), 'pctliic_moe': Value('int64')}, 'checks': {'source_row_count': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'unique_keys': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'nonmissing_keys': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'geography_consistency': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'under19_categories': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'count_identity': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')},
...
tual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'percentage_range': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'nonnegative_counts': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'geography_unique': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'all_income_percentages': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'eligible_vs_within_income': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'all_income_denominator': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'complete_2024_rows': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'states': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'counties': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'county_view_grain': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}, 'kalawao_missing': {'actual': Value('int64'), 'expected': Value('int64'), 'passed': Value('bool')}}, 'output': Value('string'), 'bytes': Value('int64'), 'sha256': Value('string'), 'duckdb': Value('string'), 'config': {'memory_limit': Value('string'), 'threads': Value('string'), 'max_temp_directory_size': Value('string'), 'preserve_insertion_order': Value('string')}, 'elapsed_seconds': Value('float64')}
because column names don't matchNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
County and State Health Insurance Estimates
Census estimates of health-insurance coverage for U.S. states, DC and counties in 2024. The August 2026 Small Area Health Insurance Estimates (SAHIE) release provides counts, percentages and 90% margins of error for demographic and income groups. Start with county_uninsured for one row per county for people under 65, all races, both sexes and all incomes. These are modeled aggregate estimates; categories overlap and are not individual records.
Start querying
Inspect New York county uninsured estimates and their 90% margins of error. Estimates describe the Census-defined population used for poverty estimates, not the entire resident population; missing values are not zeros.
fips is the geographic identifier, county_name is its label, pctui is percent uninsured, and pctui_moe is the 90% margin of error in percentage points.
Expected first counties are Albany, Allegany and Bronx, with uninsured percentages
4.8, 5.4 and 8.1 and 90% margins of error 0.5, 0.7 and 0.6 percentage points.
Python returns DECIMAL percentages as Decimal; R returns numeric values. FIPS
identifiers remain strings. These are source estimates, not individual records.
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("sahie")
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 fips,county_name,pctui,pctui_moe FROM county_uninsured WHERE statefips='36' ORDER BY fips LIMIT 3"))
}, finally = dp_disconnect(con))
Python
import datapond
con = datapond.connect('sahie')
try:
con.execute("SET threads=1")
con.execute("SET memory_limit='128MiB'")
con.execute("SET max_temp_directory_size='0B'")
print(con.execute("""SELECT fips,county_name,pctui,pctui_moe FROM county_uninsured WHERE statefips='36' ORDER BY fips 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
See the data dictionary for column definitions.
| Table | Description | Rows | Columns |
|---|---|---|---|
estimates |
Demographic/income estimates, overlapping groups | 402,786 | 27 |
geographies |
State and county FIPS/names | 3,195 | 6 |
category_codes |
Official category definitions | 26 | 3 |
county_uninsured selects under-65, all-race, both-sex, all-income estimates for
3,144 counties. Source missing values remain SQL NULL.
Join category fields (agecat, racecat, sexcat, iprcat) to category_codes using the category name and code. fips is two characters for state rows and five for county rows; filter the geography level before joining, and keep leading zeros.
Interpretation
The groups overlap, so table rows must not be added as population counts. Race detail is state-only. Match geographic vintages before FIPS joins. Kalawao County is unavailable. Zero margins of error reflect source rounding. These aggregate modeled data do not identify causal effects. See the field guide, data dictionary and the official layout.
The population denominator is the Census poverty universe. pctui uses the selected income group; pctelig uses the same demographic group at all incomes. Published 90% uncertainty reflects model and sampling error, subject to model assumptions, and excludes nonsampling error. Missing estimates remain NULL. The field guide defines all measures, overlapping categories, zero-denominator missingness, Kalawao omissions, rounding and geographic-vintage caveats.
Other ways to connect
Direct DuckDB SQL
-- In DuckDB with HTTPFS available:
ATTACH 'https://huggingface.co/datasets/Nason/sahie-database/resolve/main/sahie.duckdb' AS sahie (READ_ONLY);
USE sahie;
SELECT fips, county_name, pctui, pctui_moe
FROM county_uninsured WHERE statefips='36' ORDER BY fips LIMIT 3;
Direct hosted access with Python or R
These direct DuckDB examples access the same hosted snapshot as the live catalog.
Install Python duckdb or R duckdb and DBI; INSTALL httpfs below installs
DuckDB's HTTP extension if it is not already present.
import duckdb
con = duckdb.connect(config={"memory_limit": "128MiB", "threads": "1",
"max_temp_directory_size": "0B"})
try:
con.execute("INSTALL httpfs; LOAD httpfs")
con.execute("ATTACH 'https://huggingface.co/datasets/Nason/sahie-database/resolve/main/sahie.duckdb' AS sahie (READ_ONLY)")
print(con.execute("""
SELECT fips, county_name, pctui, pctui_moe
FROM sahie.county_uninsured
WHERE statefips = '36' ORDER BY fips LIMIT 3
""").fetchall())
finally:
con.close()
library(DBI)
con <- dbConnect(duckdb::duckdb())
tryCatch({
dbExecute(con, "SET memory_limit='128MiB'")
dbExecute(con, "SET threads=1")
dbExecute(con, "SET max_temp_directory_size='0B'")
dbExecute(con, "INSTALL httpfs; LOAD httpfs")
dbExecute(con, "ATTACH 'https://huggingface.co/datasets/Nason/sahie-database/resolve/main/sahie.duckdb' AS sahie (READ_ONLY)")
print(dbGetQuery(con, "
SELECT fips, county_name, pctui, pctui_moe
FROM sahie.county_uninsured
WHERE statefips='36' ORDER BY fips LIMIT 3"))
}, finally = dbDisconnect(con, shutdown=TRUE))
The sahie dataset is available in the live Datapond catalog.
Queries run on your machine. The 14.17 MB file size is storage, not required RAM;
DuckDB's 128 MiB limit covers its buffer pool, not the entire Python/R process.
Selected columns reduce transfer, but a final LIMIT does not guarantee a small
scan. These examples use one thread and disable disk spill.
Sources and maintenance
Sources and license
Source: U.S. Census Bureau SAHIE. License: U.S. public domain (Census Bureau work).
Source: Census SAHIE, 2024, retrieved November 2, 2026. U.S. public domain as a Census Bureau work under the agency policy; no worldwide CC0 claim.
Artifact and client checks
The 14,168,064-byte database includes standard datapond metadata.
Source ZIP SHA-256: 5ec0a0cc5cb2e4e17cf046d9f68508decfdb4d9bbb982781d94bbf56ce50347a.
Tested engine versions are Python DuckDB 1.5.6 and R DuckDB 1.5.5.
Python and R clients can query this file directly with DuckDB/DBI. The Python
datapond 0.1.5 and CRAN R datapond 0.1.0 clients passed HTTP range tests against
this exact artifact using a temporary registry (DuckDB 1.5.6 and 1.5.5 respectively).
The sahie identifier is now available in the live Datapond catalog; the first-use
examples above use that default catalog. See build-manifest.json for identity and validation, and
the code repository for client examples.
- Downloads last month
- 273