Initializing playground…
← Back to examples

⚽ Sports League Standings

Scenario: An amateur football league played a round-robin. Build the league table from match results: wins, goal difference, points, and final rank.

Skills: concat, groupby().agg, rankSeries, sortValues.

1 · Build the standings table

Each match contributes two rows to the per-team view (one for each team).

TypeScript
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent