Menu

Corners and Yellow Cards per Match by League: One Match Table, SQL and pandas, 2025/26 vs 2026/27
📰

Corners and Yellow Cards per Match by League: One Match Table, SQL and pandas, 2025/26 vs 2026/27

DEV Community: datascience·Xpect·17 days ago
#B7f7KuV5
#devtodatascience#science#devto#dev#corners
Long article (831 words) — no AI summary yet.
Reading 0:00
15s threshold

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') .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.