Skip to content

Repair missing qualifying IDs and prevent incomplete exports - #135

Merged
gmalbert merged 5 commits into
mainfrom
codex/fix-qualifying-refresh
Nov 29, 2026
Merged

gmalbert merged 5 commits into
mainfrom
codex/fix-qualifying-refresh

Conversation

@gmalbert

@gmalbert gmalbert commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

The qualifying refresh dropped FastF1 driver and team IDs when both the old and new columns were present. Missing IDs then caused a pandas dtype error during constructor backfill.

  • Fill missing IDs from FastF1 columns before dropping them. Resolve remaining gaps from F1DB qualifying and race results scoped to the event, and fail before replacing the CSV if any row still lacks an ID.
  • Backfill driver and constructor IDs for all 220 affected rows in the first ten rounds of 2026. Verified all 3,679 rows have both IDs and existing qualifying times were preserved.
  • Regression tests cover mixed-column input, both reference sources, and leaving the prior export intact when a match cannot be resolved. Passed on pandas 2.3.3 and 3.0.5.

Original failed run

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Deploying f1analysis-dashboard with  Cloudflare Pages  Cloudflare Pages

Latest commit: de46dfc
Status: ✅  Deploy successful!
Preview URL: https://9990aa13.f1analysis-dashboard.pages.dev
Branch Preview URL: https://codex-fix-qualifying-refresh.f1analysis-dashboard.pages.dev

View logs

@gmalbert gmalbert changed the title Fix pandas crash in qualifying data refresh Repair missing qualifying IDs and prevent incomplete exports Nov 29, 2026
@gmalbert
gmalbert merged commit 6fac547 into main Nov 29, 2026
7 checks passed
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