Skip to content

fix(data): re-derive early_january_2023_weather from weather (real temp/dewp/humid/pressure)#7

Merged
ismayc merged 1 commit into
mainfrom
fix/early-january-2023-weather
Jun 19, 2026
Merged

fix(data): re-derive early_january_2023_weather from weather (real temp/dewp/humid/pressure)#7
ismayc merged 1 commit into
mainfrom
fix/early-january-2023-weather

Conversation

@ismayc

@ismayc ismayc commented Jun 19, 2026

Copy link
Copy Markdown
Member

Problem

The R moderndive::early_january_2023_weather dataset ships with temp, dewp, humid, and pressure entirely NA (mean temp is NaN). That upstream bug carried through to the bundled Parquet here as all-null string columns — so the four core measurement columns were unusable.

Fix

Derive early_january_2023_weather from the weather dataset (Newark/EWR, first 15 days of January 2023) instead of reading the broken standalone source. Those columns come back as real, correctly-typed floats (360 rows, unchanged).

  • tools/build_data.py now builds it from the freshly read weather frame.
  • Regenerated early_january_2023_weather.parquet.
  • Added a regression test asserting temp/dewp/humid/pressure are numeric and non-null.

Verified against R (which is itself NaN here) and the weather source rows; values are consistent and the existing UTC time_hour convention is preserved.

🤖 Generated with Claude Code

The R `moderndive::early_january_2023_weather` ships with temp, dewp, humid,
and pressure entirely NA (mean temp is NaN), which carried through to the
bundled Parquet as all-null string columns. Derive the table from `weather`
instead (Newark / EWR, first 15 days of January 2023) so those four columns
are real, correctly-typed floats. Same 360 rows.

build_data.py now produces it from the freshly built weather frame rather than
reading a separate CSV, and a regression test asserts the measurement columns
are numeric and non-null.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017CTL1QSTg1DmDUpqYuPEog
@ismayc ismayc merged commit 20dc713 into main Jun 19, 2026
5 of 6 checks passed
@ismayc ismayc deleted the fix/early-january-2023-weather branch June 19, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant