From 2c818e292aa191f9425cd0e33e3d61f3e5932cf8 Mon Sep 17 00:00:00 2001 From: ramseshk <45832522+ramseshk@users.noreply.github.com> Date: Wed, 12 Aug 2026 12:21:21 +0800 Subject: [PATCH] fix: add 'player' column to predictions warehouse dummy to fix KeyError Page 02_players.py accesses preds['player'] but the empty-warehouse dummy had 'name' as column. Added 'player' as primary column to predictions.parquet default schema. --- dashboard/warehouse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/warehouse.py b/dashboard/warehouse.py index 588d54b..73a94fa 100644 --- a/dashboard/warehouse.py +++ b/dashboard/warehouse.py @@ -17,7 +17,7 @@ _EMPTY_DEFAULTS = { "fv_proj", "goals", "assists", "stability", "starter_pct", "fvm", "mv_proj", "bid_cap"], "fixtures.parquet": ["team", "matchday", "opp_strength", "home", "away"], - "predictions.parquet": ["name", "role", "team", "fv_mean", "fv_std", "mv_mean", + "predictions.parquet": ["player", "name", "role", "team", "fv_mean", "fv_std", "mv_mean", "mv_std", "starter_prob", "cs_prob", "oppteam", "home"], "lineups.parquet": ["player", "role", "team", "starter_pct"], "votes.parquet": ["player", "vote", "matchday"],