# Fall-back clock change and US electricity demand, derived data

Derived aggregates for the post /blog/daylight-saving-time-grid-demand/ on tokenflake.com. No raw EIA bulk files are included.

## Source
US Energy Information Administration, Form EIA-930 hourly balancing authority data, six-month files
EIA930_BALANCE_2019_Jul_Dec.csv to EIA930_BALANCE_2025_Jul_Dec.csv from
https://www.eia.gov/electricity/gridmonitor/sixMonthFiles/
URL, size, SHA-256 and pull time for each file are in manifest.csv. Pulled 2026-10-30 and downloaded again at
2026-10-30T1659Z with identical hashes. last_modified is the HTTP Last-Modified header (GMT) seen at that re-check.
EIA re-stamps the files without changing their bytes, so use the hashes, not the date, to tell versions apart.

## Licence
EIA states that U.S. government publications are in the public domain and not subject to copyright
(https://www.eia.gov/about/copyrights_reuse.php). EIA asks to be credited as the source.
Our derived tables are offered on the same terms. Please cite "US EIA, Form EIA-930, analysis by tokenflake.com".

## Files
- dst_fallback_summary.csv, one row per area and year. Mean hourly MW in the 7 days before and after the fall-back
  Sunday, weekday changes, evening peak MW and hour, placebo weeks, change minus AZPS, data-quality counts and exclusions.
- dst_fallback_hourly.csv, every hour of each fall-back Sunday (25 hours, 24 in Arizona), keyed on UTC hour end,
  with local hour beginning, demand MW (EIA Adjusted) and imputed or missing flags (fractions for US48_SUM).
- dst_fallback_weekday_shapes.csv, mean weekday demand by local clock hour (hour beginning) before and after, in MW
  and as an index with the before-week mean at 100.
- manifest.csv, the pulled files.
- scripts/, the Python code (pandas) that builds the three CSV files and the post's tables from the raw EIA files.

## Reproduce
1. Download the seven files listed in manifest.csv into a folder, e.g. raw/, and check their SHA-256 against the manifest.
2. In an empty working folder, run
   python3 scripts/analyze.py raw
   python3 scripts/summarize.py
   python3 scripts/export.py
   python3 scripts/mdtables.py
   with each script path pointing into this folder. analyze.py writes work/hourly.pkl plus self-test, time-zone and
   imputed-flag checks in work/. summarize.py and export.py write the three CSV files. mdtables.py writes the rows of
   tables T1 to T4 to work/.
3. Compare the CSV files with the ones published here.

## Method notes
- Demand column is "Demand (MW) (Adjusted)". An hour is imputed when "Demand (MW) (Imputed)" is non-empty.
- Rows keyed on UTC. Local time from IANA zones (CISO, BPAT Los Angeles; ERCO, MISO, SWPP Chicago; PJM, NYIS, ISNE
  New York; AZPS, SRP Phoenix). EIA's local column matched except MISO, which EIA gives as UTC minus 5 all year.
- US48_SUM is our sum of every balancing authority in the files that reports demand, keyed on Eastern days.
  It is not EIA's published Lower 48 series.
- An area-year is excluded when more than 2 percent of its before and after window hours are missing or imputed.
  For US48_SUM the share is over area-hours, and bad_hours_equiv is that share times the 337 window hours.
- No weather adjustment.

## 2026
No 2026 values are included. They will be added, marked preliminary, after EIA publishes the hours through 14 November 2026, the end of the later placebo week.
