Most football stat sites show you "corners per match" as a finished number. Computing it yourself takes about ten lines once all matches live in one table. Here is the exact approach we use for four leagues, with the real output for 2025/26 against 2026/27 so far. It is the same pipeline that produces our goal averages for every league, by TohaProBets , just pointed at corners and cards instead of goals.
The table
One row per match. Nothing is stored per team, because every team split can be derived later.
CREATE TABLE matches ( league TEXT , -- 'APL', 'La Liga', 'Serie A', 'BR Serie A' season TEXT , -- '2526', '2627', or '2025', '2026' for Brazil date TEXT , home , away TEXT , hg , ag INTEGER , -- goals hc , ac INTEGER , -- corners won by each side hy , ay INTEGER , -- yellow cards referee TEXT ) ;
Enter fullscreen mode
Exit fullscreen mode
A real row looks like this: ('2026-10-24', 'Arsenal', 'Everton', 2, 0, 12, 3, 1, 3, 'Tony Harrington') .…