Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 4 new columns ({'Total Population', 'State', 'Total Missed Milestones', 'Total CWS'}) and 8 missing columns ({'MATERIAL_TO_WATER', 'RESPONSIBLE_COMPANY', 'RANK', 'STATES_INVOLVED', 'TOTAL_INJURED', 'WATER_CONTAMINATION', 'TOTAL_INCIDENTS', 'TOTAL_FATALITIES'}).

This happened while the csv dataset builder was generating data using

hf://datasets/Lillian-Enterprises/us-federal-compliance-sample/sample_state_summary.csv (at revision 844bdbbabe2f6b1fc9e91a16bfbed8dd105b218d), [/tmp/hf-datasets-cache/medium/datasets/60044753242768-config-parquet-and-info-Lillian-Enterprises-us-fe-ab7c9416/hub/datasets--Lillian-Enterprises--us-federal-compliance-sample/snapshots/844bdbbabe2f6b1fc9e91a16bfbed8dd105b218d/sample_nrc_repeat_offenders.csv (origin=hf://datasets/Lillian-Enterprises/us-federal-compliance-sample@844bdbbabe2f6b1fc9e91a16bfbed8dd105b218d/sample_nrc_repeat_offenders.csv), /tmp/hf-datasets-cache/medium/datasets/60044753242768-config-parquet-and-info-Lillian-Enterprises-us-fe-ab7c9416/hub/datasets--Lillian-Enterprises--us-federal-compliance-sample/snapshots/844bdbbabe2f6b1fc9e91a16bfbed8dd105b218d/sample_state_summary.csv (origin=hf://datasets/Lillian-Enterprises/us-federal-compliance-sample@844bdbbabe2f6b1fc9e91a16bfbed8dd105b218d/sample_state_summary.csv), /tmp/hf-datasets-cache/medium/datasets/60044753242768-config-parquet-and-info-Lillian-Enterprises-us-fe-ab7c9416/hub/datasets--Lillian-Enterprises--us-federal-compliance-sample/snapshots/844bdbbabe2f6b1fc9e91a16bfbed8dd105b218d/sample_top100_community_water_systems.csv (origin=hf://datasets/Lillian-Enterprises/us-federal-compliance-sample@844bdbbabe2f6b1fc9e91a16bfbed8dd105b218d/sample_top100_community_water_systems.csv)]

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1893, in _prepare_split_single
                  writer.write_table(table)
                File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 765, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 773, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2281, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2227, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              State: string
              Total CWS: int64
              Total Population: int64
              Total Missed Milestones: int64
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 757
              to
              {'RESPONSIBLE_COMPANY': Value('string'), 'RANK': Value('int64'), 'TOTAL_INCIDENTS': Value('int64'), 'WATER_CONTAMINATION': Value('int64'), 'MATERIAL_TO_WATER': Value('int64'), 'TOTAL_FATALITIES': Value('int64'), 'TOTAL_INJURED': Value('int64'), 'STATES_INVOLVED': Value('string')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1347, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 980, in convert_to_parquet
                  builder.download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 884, in download_and_prepare
                  self._download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 947, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1739, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1895, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 4 new columns ({'Total Population', 'State', 'Total Missed Milestones', 'Total CWS'}) and 8 missing columns ({'MATERIAL_TO_WATER', 'RESPONSIBLE_COMPANY', 'RANK', 'STATES_INVOLVED', 'TOTAL_INJURED', 'WATER_CONTAMINATION', 'TOTAL_INCIDENTS', 'TOTAL_FATALITIES'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/Lillian-Enterprises/us-federal-compliance-sample/sample_state_summary.csv (at revision 844bdbbabe2f6b1fc9e91a16bfbed8dd105b218d), [/tmp/hf-datasets-cache/medium/datasets/60044753242768-config-parquet-and-info-Lillian-Enterprises-us-fe-ab7c9416/hub/datasets--Lillian-Enterprises--us-federal-compliance-sample/snapshots/844bdbbabe2f6b1fc9e91a16bfbed8dd105b218d/sample_nrc_repeat_offenders.csv (origin=hf://datasets/Lillian-Enterprises/us-federal-compliance-sample@844bdbbabe2f6b1fc9e91a16bfbed8dd105b218d/sample_nrc_repeat_offenders.csv), /tmp/hf-datasets-cache/medium/datasets/60044753242768-config-parquet-and-info-Lillian-Enterprises-us-fe-ab7c9416/hub/datasets--Lillian-Enterprises--us-federal-compliance-sample/snapshots/844bdbbabe2f6b1fc9e91a16bfbed8dd105b218d/sample_state_summary.csv (origin=hf://datasets/Lillian-Enterprises/us-federal-compliance-sample@844bdbbabe2f6b1fc9e91a16bfbed8dd105b218d/sample_state_summary.csv), /tmp/hf-datasets-cache/medium/datasets/60044753242768-config-parquet-and-info-Lillian-Enterprises-us-fe-ab7c9416/hub/datasets--Lillian-Enterprises--us-federal-compliance-sample/snapshots/844bdbbabe2f6b1fc9e91a16bfbed8dd105b218d/sample_top100_community_water_systems.csv (origin=hf://datasets/Lillian-Enterprises/us-federal-compliance-sample@844bdbbabe2f6b1fc9e91a16bfbed8dd105b218d/sample_top100_community_water_systems.csv)]
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

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.

RESPONSIBLE_COMPANY
string
RANK
int64
TOTAL_INCIDENTS
int64
WATER_CONTAMINATION
int64
MATERIAL_TO_WATER
int64
TOTAL_FATALITIES
int64
TOTAL_INJURED
int64
STATES_INVOLVED
string
TARGA RESOURCES
1
111
0
1
0
0
TX
KINDER MORGAN
2
108
0
21
0
4
TX|SC|CA|MN|XX|LA|VA|NV|AR|TN|FL
ENERGY TRANSFER
3
93
0
21
0
6
TX|PA|OK|LA|NJ
CSX RAILROAD
4
76
0
4
4
0
FL|XX
ENTERPRISE PRODUCTS
5
76
0
8
0
2
LA|TX
PHILLIPS 66
6
68
0
13
0
7
TX|LA|IL|NJ|OK|NM|WA
US NAVY
7
62
0
53
0
1
XX|FL|PA|CA|HI|VA|WA|LA|PR|CT
NORFOLK SOUTHERN
8
57
0
4
1
2
GA|IL|XX|VA
TALOS ENERGY
9
54
0
54
0
0
TX
CANTIUM LLC
10
53
0
52
0
0
LA
CHEVRON
11
47
0
25
0
1
UT|LA|FL|WA|TX|MS|OR|CO|GA|CA|XX
UNION PACIFIC RAILROAD
12
46
0
1
1
4
NE|IL|XX
ARENA OFFSHORE
13
38
0
38
0
0
TX
TEXAS PETROLEUM INVESTMENT COMPANY
14
38
0
32
0
0
LA|TX|XX
DOW CHEMICAL
15
36
0
4
0
0
TX|MI|LA|KY
BP
16
33
0
28
0
0
TX|IN|GA|WA|VA|IL|OH
EXXON MOBIL
17
32
0
7
0
0
WY|TX|MD
MANSON CONSTRUCTION
18
31
0
30
0
0
LA|XX|WA|CA|SC
KOCH FERTILIZER
19
31
0
0
0
0
KS|IA|NE|OK|LA|IN
WESTLAKE CHEMICAL
20
31
0
0
0
0
LA|WV
CYANCO
21
31
0
0
0
0
NV
WILLIAMS COMPANIES
22
31
0
2
0
0
OK|TX
WOODSIDE ENERGY
23
29
0
29
0
0
TX|LA
DUKE ENERGY
24
29
0
17
1
1
IN|FL|OH|NC|XX
MARATHON PETROLEUM
25
28
0
13
0
0
KY|AK|CA|XX|LA|TX|MI
WASTE MANAGEMENT
26
27
0
14
0
0
WA|PA|MA|TX|XX|MI|AZ
ENTERGY
27
26
0
15
0
0
LA|AR|TX
JR VINAGRO
28
26
0
16
0
0
XX|RI
SHELL
29
26
0
20
0
2
LA|PA|MD|CA|XX|TX|IL|KY
US NAVY - REGIONAL DISPATCH CENTER
30
26
0
18
0
0
VA
CF INDUSTRIES
31
26
0
0
0
0
IL|OK|LA|IA|MS
WEEKS MARINE
32
25
0
24
0
0
NJ|LA|XX|TX
UPS
33
25
0
2
0
2
XX|TX|IL|PA|MI|NC|GA|KY|AL|FL|MD|CA|SC
NORTHERN NATURAL GAS
34
25
0
0
0
0
NE|MN|XX
US NAVY - NAVAL STATION MAYPORT
35
24
0
23
0
0
FL
CAPTURE POINT
36
24
0
1
0
0
OK|TX
ONEOK
37
23
0
3
0
0
OK|TX|NE|XX
TOTAL ENERGIES
38
23
0
2
0
0
TX|MA
REPUBLIC SERVICES
39
22
0
8
0
0
MN|WA|XX|KY|AZ|NJ|UT|PA|OH|TX|CA
AMERICAN ELECTRIC POWER
40
22
0
20
0
0
OK|OH|VA|TX|LA|IN
BNSF RAILWAY
41
22
0
5
0
0
TX|XX
BASF
42
22
0
3
0
0
MO|LA|TX
ENBRIDGE
43
21
0
3
0
0
TX|XX
FORMOSA PLASTICS
44
21
0
1
0
0
TX|LA
BUCKEYE PARTNERS
45
21
0
10
0
0
TX|MD|FL|PA|OH
ENTERGY ARKANSAS
46
21
0
9
0
0
AR
TEXAS PETROLEUM INVESTMENT CO.
47
20
0
19
0
0
LA
HILCORP
48
19
0
16
0
0
LA|AK|TX
PG&E
49
19
0
7
0
0
CA
W & T OFFSHORE
50
19
0
19
0
0
TX|XX
VALERO REFINERY
51
18
0
7
0
0
TX
WESTLAKE CHEMICALS
52
18
0
0
0
2
LA
ATMOS ENERGY
53
18
0
0
0
10
TX|MS|LA
ONCOR ELECTRIC DELIVERY
54
18
0
16
0
0
TX
HILCORP ENERGY
55
18
0
10
0
0
AK|LA|TX|WY
NAVAL BASE KITSAP BANGOR
56
17
0
16
0
0
WA
FLINT HILLS RESOURCES CORPUS CHRISTI
57
17
0
6
0
0
TX
SUNOCO
58
16
0
4
0
0
PA|KS|XX|FL|OR|VA|NJ|OH|TX|IL
CALLAN MARINE
59
16
0
13
0
0
TX
LEPRINO FOODS
60
16
0
0
0
0
CO|CA|NY
CALGARY ENERGY
61
16
0
9
0
0
OK|XX
GOLDEN GATE FERRY
62
16
0
16
0
0
CA
TC ENERGY
63
16
0
2
0
0
TX|WV|IL|MI|NE
WAYNE SANDERSON FARMS
64
16
0
2
0
0
MS
ANADARKO PETROLEUM
65
15
0
15
0
0
TX
CONSOLIDATED EDISON COMPANY OF NEW YORK
66
15
0
6
0
0
NY
EXXON MOBIL REFINERY
67
15
0
0
0
0
TX
BAE SYSTEMS
68
15
0
9
0
2
VA|PA|FL
TYSON FOODS
69
15
0
1
0
1
AL|KS|OK|NC|MS|TN|AR
US ARMY CORP OF ENGINEERS
70
15
0
15
0
0
IL|WA|OK|WV|MI|OR
TRAVEL CENTERS OF AMERICA
71
15
0
13
0
0
CO|ID|AR|LA|NM|SC|IN|OR|MI|VA|FL|OH|MD
NOAA
72
15
0
14
0
0
HI|OR|MA|MS|NH
FLINT HILLS RESOURCES
73
15
0
4
0
0
TX|MN
DAIRY FARMERS OF AMERICA
74
15
0
2
1
2
NM|MO|MA|IL|CT|PA|IA
CARGILL
75
15
0
6
0
0
CO|MO|OH|KS|NE|IA|KY
COLUMBIA GAS TRANSMISSION
76
15
0
2
0
0
WV|TX
METRA
77
14
0
0
0
0
IL
SUBSEA 7
78
14
0
13
0
0
TX|XX
DEEP OCEAN GROUP
79
13
0
13
0
0
TX
SOLAR TRANSPORT
80
13
0
2
0
0
IA
TARGA RESOURCES LLC.
81
13
0
0
0
5
TX
USCG
82
13
0
13
0
0
LA|FL|VA|XX|CA|MD|AL|WA|MI|GU|TX
ANADARKO PETROLEUM CORPORATION
83
13
0
13
0
0
TX
FORMOSA PLASTICS CORPORATION, TEXAS
84
13
0
0
0
0
TX
SEPTA
85
13
0
0
0
1
PA
AMERICAN AIRLINES
86
12
0
5
0
0
TN|XX|NY|TX|HI
COLONIAL PIPELINE
87
12
0
0
0
0
GA|NC|TX|VA
BROOKFIELD RENEWABLE
88
12
0
12
0
0
PA|ME
CANAL BARGE COMPANY
89
12
0
6
0
0
XX|TX|LA
EVERSOURCE
90
12
0
12
0
0
CT|MA
W&T OFFSHORE
91
12
0
11
0
0
TX
HARVEST MIDSTREAM
92
12
0
2
0
0
TX
HOLLY ENERGY PARTNERS
93
12
0
0
0
0
TX
FIRST ENERGY OHIO EDISON
94
12
0
11
0
0
OH
OLIN CORP
95
12
0
0
0
0
TX
NATIONAL GRID
96
12
0
7
0
3
NY|MA|XX
SYSCO
97
12
0
6
0
1
XX|NC|LA|WA|TX|FL
WHITE FLEET OPERATING
98
12
0
12
0
0
TX
CITGO PETROLEUM
99
11
0
2
0
0
IL|TX
W AND T OFFSHORE
100
11
0
9
0
0
TX|XX
End of preview.

Lillian Enterprises — U.S. Federal Compliance Dataset (Sample Release)

Publisher: Lillian Enterprises LLC · Knoxville, Tennessee · Est. 2026 Contact: msa@lillianenterprises.com · https://lillianenterprises.com License: Creative Commons Attribution-NonCommercial 4.0 (CC BY-NC 4.0) Release: April 2026 (Sample / Public Surface)


What this is

A cross-program U.S. federal compliance dataset reconciled at the facility level via EPA's FRS REGISTRY_ID. The full dataset consolidates records from:

  • SDWA — Safe Drinking Water Act violations, Lead Service Line inventories, UCMR5 PFAS detections
  • NPDES — National Pollutant Discharge Elimination System permits and enforcement
  • RCRA — Resource Conservation and Recovery Act hazardous-waste generation and handling
  • ICIS-AIR — Integrated Compliance Information System air-program violations
  • TRI — Toxics Release Inventory 5-year trend
  • NRC — National Response Center incident reports (water contamination, material-reached-water events)

Each figure in the full product is footnoted to the originating federal-database row. All source material is public. The value of the format is the cross-program consolidation, not any single program's data.

What's in this sample

Three representative tables plus the methodology overview:

File Rows Description
sample_top100_community_water_systems.csv 100 Top 100 community water systems by SDWA Lead Service Line Inventory missed milestones. Columns: Rank, PWSID, System Name, State, City, Population Served, Service Connections, Missed Milestones.
sample_state_summary.csv 61 State-level rollup: Total CWS count, aggregate population served, cumulative missed LSL milestones.
sample_nrc_repeat_offenders.csv 130 Top NRC incident-report repeat offenders by RESPONSIBLE_COMPANY, with water-contamination event counts and material-reached-water counts.
methodology.pdf 4 pp Overview of the reconciliation pipeline, data sources, source-citation convention, and refresh cadence.

The full April 2026 release covers 695+ facilities with the complete cross-program matrix (single-facility, multi-program, state-rollup, and sector-rollup views).

Intended audiences

  • Public-finance credit desks — screening municipal water issuers for infrastructure-compliance exposure
  • Municipal-bond research — pre-issuance due diligence on water-utility obligors
  • Environmental-insurance underwriters — portfolio-exposure reconciliation for environmental liability lines
  • Environmental due-diligence consultancies — single-facility briefs for M&A and procurement intake
  • Institutional ESG/shareholder research — cross-program federal-record reconciliation for AGM-season engagement
  • Journalists & public-interest researchers — fact-checkable source-cited baseline for investigative work

How to obtain the full product

Three delivery tiers:

1. Single-facility compliance dossier — $2,500 (one-time, retail)

Pre-built 14-page PDF for a specific facility covering SDWA, NPDES, RCRA, ICIS-AIR cross-program records with per-row source citation. Immediate delivery via signed URL (valid 72 hours). Current catalog includes 11 flagship facilities:

  • Chemours Washington Works WV · Alcoa Warrick IN · LSB El Dorado AR · Westlake Proctor WV · LyondellBasell La Porte TX · Phillips 66 Sweeny TX · Teck Red Dog AK · Clean Harbors Kimball NE · PPG Circleville OH · Dow Sabine TX · Duke Energy Belews Creek NC

Purchase a single-facility dossier

Or select a specific facility from the catalog: https://lillianenterprises.com (Request an Engagement Letter link).

2. Practice-group data access — subscription (contact for pricing)

A curated subset of the full dataset sized to a specific practice, sector, or state. Quarterly refresh; source citations preserved at the row level.

3. Enterprise / firm-wide access — subscription (contact for pricing)

Full national cross-program dataset with quarterly refresh, API access, and custom coverage scoping. Intended for institutional credit, insurance underwriting, and ESG research workflows.

Inquire: msa@lillianenterprises.com — write "Engagement Letter Request" in the subject. Scope letter returned within two business days. No calls required.

Technical notes

  • All CSVs are UTF-8, comma-delimited, with a single header row.
  • PWSID follows EPA's standard 9-character format (state prefix + numeric ID).
  • REGISTRY_ID (full dataset only) is EPA Facility Registry Service identifier, canonical cross-program join key.
  • Date fields are ISO-8601 where present.
  • Missing values are empty cells (not NULL / NaN / -1).

Compliance & posture

Lillian Enterprises LLC is a data analysis and research firm. We are not a law firm. Nothing in this dataset or its accompanying materials constitutes legal, regulatory, financial, or investment advice. All analysis derives from publicly available federal records. Buyers and downstream users make their own interpretations; we provide the consolidated record, not the conclusion.

This sample is released under CC BY-NC 4.0 — you may share and adapt for non-commercial purposes with attribution. Commercial use (including internal-business redistribution) requires a paid subscription per the tiers above.

Changelog

  • 2026-04-22 — Initial sample release across Kaggle / HuggingFace / GitHub. Three CSVs + methodology PDF. Full April 2026 dataset covers 695+ facilities.

Citation

If you use this sample in academic or journalistic work, please cite:

Lillian Enterprises LLC (2026). U.S. Federal Compliance Dataset — Sample Release. Knoxville, TN. https://lillianenterprises.com


© 2026 Lillian Enterprises LLC. Sample data released under CC BY-NC 4.0. Full dataset licensed commercially.

Downloads last month
61