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:    ValueError
Message:      Expected object or value
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 291, in _generate_tables
                  pa_table = paj.read_json(
                      io.BytesIO(batch), read_options=paj.ReadOptions(block_size=block_size)
                  )
                File "pyarrow/_json.pyx", line 364, in pyarrow._json.read_json
                File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
                  return check_status(status)
                File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
                  raise convert_status(status)
              pyarrow.lib.ArrowInvalid: JSON parse error: Column(/checks/[]/actual) changed from number to string in row 0
              
              During handling of the above exception, another exception occurred:
              
              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 306, in _generate_tables
                  batch = json_encode_fields_in_json_lines(original_batch, json_field_paths)
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/json.py", line 111, in json_encode_fields_in_json_lines
                  examples = [ujson_loads(line) for line in original_batch.splitlines()]
                              ~~~~~~~~~~~^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/json.py", line 20, in ujson_loads
                  return pd.io.json.ujson_loads(*args, **kwargs)
                         ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
              ValueError: Expected object or value

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.

CMS Medicaid and CHIP enrollment

CMS October 30, 2026 release: 11,220 state/period/report observations and 44 field definitions. Monthly records cover June 2017-July 2026 across 50 states and DC, plus a July-September 2013 baseline average. Preliminary and updated versions coexist and must not be pooled. 11,264 rows across 2 tables.

Table Description Row Count Column Count
enrollment State/reporting-period/report-type records. 201309 is a Jul-Sep 2013 baseline average; preliminary and updated observations must not be pooled. 11,220 47
field_definitions Pinned CMS definitions and exact source headers for the 44 source fields; descriptive rows, not enrollment observations. 44 6

Query the hosted snapshot

INSTALL httpfs; LOAD httpfs;
ATTACH 'https://huggingface.co/datasets/Nason/medicaid-enrollment-database/resolve/main/medicaid-enrollment.duckdb' AS db (READ_ONLY);

SELECT state_abbreviation, total_medicaid_and_chip_enrollment,
       total_medicaid_and_chip_enrollment_footnotes
FROM db.monthly_preliminary WHERE reporting_period = '202607'
ORDER BY state_abbreviation LIMIT 5;

Python with DuckDB

Install once with python -m pip install duckdb.

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/medicaid-enrollment-database/resolve/main/medicaid-enrollment.duckdb' AS db (READ_ONLY)")
    print(con.execute("SELECT state_abbreviation, total_medicaid_and_chip_enrollment, total_medicaid_and_chip_enrollment_footnotes FROM db.monthly_preliminary WHERE reporting_period='202607' ORDER BY state_abbreviation LIMIT 5").fetchall())
finally:
    con.close()

These URLs follow the latest publication. For reproducible results, use the immutable attach_url in the Datapond registry and record the revision. HTTP range queries execute locally and may transfer much of the database; LIMIT does not guarantee a small scan. The buffer limit is not a total process-memory cap; with spill disabled, larger queries may fail.

R with DBI and duckdb

Install once with install.packages(c("DBI", "duckdb")).

library(DBI)
con <- dbConnect(duckdb::duckdb(config=list(memory_limit="128MiB",threads="1",max_temp_directory_size="0B")))
tryCatch({
  dbExecute(con, "INSTALL httpfs; LOAD httpfs;")
  dbExecute(con, "ATTACH 'https://huggingface.co/datasets/Nason/medicaid-enrollment-database/resolve/main/medicaid-enrollment.duckdb' AS db (READ_ONLY)")
  print(dbGetQuery(con, "SELECT state_abbreviation, total_medicaid_and_chip_enrollment, total_medicaid_and_chip_enrollment_footnotes FROM db.monthly_preliminary WHERE reporting_period='202607' ORDER BY state_abbreviation LIMIT 5"))
}, finally=dbDisconnect(con, shutdown=TRUE))

Or with the datapond packages: pip install datapond / install.packages("datapond").

Source identity and all 493,680 source cells rechecked November 16, 2026. Enrollment is a month-end stock subject to retained state footnotes; source code 201309 is a July-September 2013 average and has NULL reporting_month. Monthly updated and preliminary views remain separate. Numeric zeros with system-limit footnotes are retained as reported, not treated as verified absence. Blank cells become NULL. See README.md, FIELD-GUIDE.md, DICTIONARY.md and source-lock.json. Official source: https://data.medicaid.gov/dataset/6165f45b-ca93-5bb5-9d06-db29c692a360 Pinned CSV: https://download.medicaid.gov/data/pi-dataset-october-2026-release.csv Retrieved November 3, 2026; source CSV SHA-256: ff5f49d7f01b620b6ac1f3e93fff6e453266471391948cd5a4efada800cfdb06.

Downloads last month
84