Best of the Bundesliga: a record book
Abstract
This study examines the Bundesliga record book using 10,256 matches drawn from
the Soccers football database. Across 33 complete seasons (1993/94 → 2025/26)
and 10,256 matches, the Bundesliga record book — home of the most dominant
champion in world football. Most championships: Bayern Munich 23 of 32 —
including eight straight titles (2013/14 → 2020/21). All computation runs in
Rust inside a .mars notebook (polars + plotters — charts as inline SVG), and
every table and figure is generated from the extracted CSVs.
Keywords
Keywords: football, analysis, records, bundesliga, mars, sqlite
Table of contents
Introduction
A complete record-book of the Bundesliga — every statistic worth knowing,
computed from all matches in data/matches_full.csv.
Records covered: most championships, the champion hall of fame (most points, most goals, fewest conceded, best goal difference, biggest title margin, most wins), the best team-seasons ever, unbeaten invincibles, closest and biggest title races, biggest wins and highest-scoring matches, and the season's top scorers where player-level data exists.
Methods
Data were extracted from the Soccers football database (packages/data) as CSV
snapshots: matches_full, player_goals.
The analysis runs entirely in Rust inside the notebook: polars handles table
scans, joins and aggregations; plotters renders figures as inline SVG;
mars_table renders result tables.
Each code cell is kept to a single output so results can be read top to bottom.
Results
All figures and tables below are computed directly from the extracted data. Each code cell produces one output — a table, a chart, or a short text summary.
use polars::prelude::*;
use std::collections::BTreeMap;
let df = LazyCsvReader::new("data/matches_full.csv")
.finish()
.expect("failed to open data/matches_full.csv — run from the notebook directory")
.collect()
.expect("failed to collect CSV into DataFrame");
let df = df
.lazy()
.filter(col("league").eq(lit("German Bundesliga")))
.collect()
.expect("filter failed");
// seasons excluded as mislabeled data (e.g. another league's fixtures)
let drop_seasons: &[&str] = &[];
println!("German Bundesliga matches: {}", df.height());
let s = |name: &str| df.column(name).unwrap_or_else(|_| panic!("missing {name}")).clone();
let col_str = |name: &str| -> Vec<String> {
s(name).str().unwrap().iter().map(|o| o.unwrap_or("").to_string()).collect()
};
let col_i64 = |name: &str| -> Vec<i64> {
let c = s(name);
let c = if c.dtype() == &DataType::Null { c.cast(&DataType::Int64).unwrap() } else { c };
c.i64().unwrap().iter().map(|o| o.unwrap_or(-1)).collect()
};
let season_v = col_str("season");
let date_v = col_str("date");
let home_v = col_str("home");
let away_v = col_str("away");
let hg_v = col_i64("hg");
let ag_v = col_i64("ag");
fn canon(name: &str) -> &str {
match name {
// England
"Manchester United" | "Man Utd" => "Man United",
"Manchester City" => "Man City",
"Newcastle United" => "Newcastle",
"Tottenham Hotspur" => "Tottenham",
"West Ham United" => "West Ham",
"Leicester City" => "Leicester",
"Norwich City" => "Norwich",
"Stoke City" => "Stoke",
"West Bromwich Albion" => "West Brom",
"Swansea City" => "Swansea",
"Leeds United" => "Leeds",
"Wolverhampton Wanderers" => "Wolves",
"Nott'm Forest" => "Nottingham Forest",
"Birmingham City" => "Birmingham",
"Blackburn Rovers" => "Blackburn",
"Bolton Wanderers" => "Bolton",
"Charlton Athletic" => "Charlton",
// Spain
"Athletic Club" => "Ath Bilbao",
"Atl\u{e9}tico Madrid" => "Ath Madrid",
"Real Betis" => "Betis",
"Celta Vigo" => "Celta",
"Real Sociedad" => "Sociedad",
"Real Valladolid" => "Valladolid",
"Real Zaragoza" => "Zaragoza",
"Rayo Vallecano" => "Vallecano",
"CD Numancia de Soria" => "Numancia",
"Real Murcia CF" => "Murcia",
"Recreativo Huelva" => "Recreativo",
"Sporting Gij\u{f3}n" => "Sp Gijon",
"Espanol" => "Espanyol",
"Gimn\u{e0}stic Tarragona" => "Gimnastic",
"Villarreal" | "Villareel" => "Villarreal",
"Santander" => "Racing Santander",
// Italy
"Inter Milan" => "Inter",
"Verona" => "Hellas Verona",
// Germany
"Bayer Leverkusen" => "Leverkusen",
"Borussia Dortmund" => "Dortmund",
"Eintracht Frankfurt" => "Ein Frankfurt",
"FSV Mainz 05" => "Mainz",
"Hamburger SV" => "Hamburg",
"Hertha Berlin" => "Hertha",
"Leipzig" => "RB Leipzig",
"Borussia M\u{f6}nchengladbach" | "M'gladbach" => "M'Gladbach",
"Darmstadt 98" => "Darmstadt",
"Fortuna Dusseldorf" => "Dusseldorf",
"Hannover 96" => "Hannover",
// France
"Olympique de Marseille" => "Marseille",
"AS Monaco" => "Monaco",
"OGC Nice" => "Nice",
"Stade de Reims" => "Reims",
"Paris Saint-Germain" => "Paris SG",
"Stade Brestois" => "Brest",
"Stade Malherbe Caen" => "Caen",
"Clermont Foot" => "Clermont",
"CA Bastia" => "Bastia",
"Saint-\u{c9}tienne" => "St Etienne",
// Netherlands
"Roda JC" => "Roda",
"Sparta Rotterdam" => "Sparta",
// Portugal
"Desp. Chaves" => "Chaves",
"Campomaior" => "Campomaiorense",
"Madeira" => "Uniao Madeira",
"AVS" => "Academico Viseu",
// Belgium
"Lommel SK" => "Lommel",
"RWD Molenbeek" => "Molenbeek",
"Mouscron" | "Mouscron-Peruwelz" => "RAAL La Louviere",
// Turkiye
"Antalya" => "Antalyaspor",
"Gaziantep" => "Gaziantepspor",
"Kayseri" => "Kayserispor",
"Malatyaspor" => "Yeni Malatyaspor",
other => other,
}
}
#[derive(Clone)]
struct Game {
date: String,
gf: i64,
ga: i64,
home: bool,
}
let mut team_games: BTreeMap<(String, String), Vec<Game>> = BTreeMap::new();
let mut all_matches: Vec<(String, String, String, i64, i64)> = Vec::new();
let mut seen: std::collections::HashSet<(String, String, String, String, i64, i64)> = std::collections::HashSet::new();
let mut n_finished = 0usize;
let mut n_dupes = 0usize;
for i in 0..df.height() {
if hg_v[i] < 0 || ag_v[i] < 0 || drop_seasons.contains(&season_v[i].as_str()) {
continue;
}
let date = date_v[i][..10].to_string();
let hg = hg_v[i];
let ag = ag_v[i];
let h = canon(&home_v[i]).to_string();
let a = canon(&away_v[i]).to_string();
let s = season_v[i].clone();
// the CSV merges two data sources; the same fixture can appear twice
// under different team-name spellings — keep only the first copy
if !seen.insert((s.clone(), h.clone(), a.clone(), date.clone(), hg, ag)) {
n_dupes += 1;
continue;
}
n_finished += 1;
all_matches.push((s.clone(), h.clone(), a.clone(), hg, ag));
team_games
.entry((s.clone(), h.clone()))
.or_default()
.push(Game { date: date.clone(), gf: hg, ga: ag, home: true });
team_games
.entry((s, a))
.or_default()
.push(Game { date, gf: ag, ga: hg, home: false });
}
for games in team_games.values_mut() {
games.sort_by(|x, y| x.date.cmp(&y.date));
}
println!("finished matches: {} ({} duplicate fixtures dropped) | team-season entries: {}", n_finished, n_dupes, team_games.len());
fn pts(g: &Game) -> i64 {
if g.gf > g.ga { 3 } else if g.gf == g.ga { 1 } else { 0 }
}
// per team-season record
#[derive(Clone)]
struct Rec {
season: String,
team: String,
played: usize,
w: i64,
d: i64,
l: i64,
pts: i64,
gf: i64,
ga: i64,
gd: i64,
}
let rec_of = |season: &str, team: &str| -> Option<Rec> {
let games = team_games.get(&(season.to_string(), team.to_string()))?;
let mut r = Rec {
season: season.to_string(),
team: team.to_string(),
played: games.len(),
w: 0, d: 0, l: 0, pts: 0, gf: 0, ga: 0, gd: 0,
};
for g in games {
r.gf += g.gf;
r.ga += g.ga;
if g.gf > g.ga { r.w += 1; r.pts += 3; }
else if g.gf == g.ga { r.d += 1; r.pts += 1; }
else { r.l += 1; }
}
r.gd = r.gf - r.ga;
Some(r)
};
// season -> sorted standings (rank order)
let standings = |season: &str| -> Vec<Rec> {
let prefix = season.to_string();
let mut teams: Vec<String> = Vec::new();
for ((s, t), _) in &team_games {
if *s == prefix && !teams.contains(t) {
teams.push(t.clone());
}
}
let mut recs: Vec<Rec> = teams.iter().filter_map(|t| rec_of(season, t)).collect();
recs.sort_by(|a, b| b.pts.cmp(&a.pts).then(b.gd.cmp(&a.gd)).then(b.gf.cmp(&a.gf)).then(a.team.cmp(&b.team)));
recs
};
// complete seasons only: >= 150 total matches (drops the in-progress season)
let mut season_match_count: BTreeMap<String, usize> = BTreeMap::new();
for (s, _, _, _, _) in &all_matches {
*season_match_count.entry(s.clone()).or_insert(0) += 1;
}
let mut complete_seasons: Vec<String> = season_match_count
.iter()
.filter(|(_, c)| **c >= 150)
.map(|(s, _)| s.clone())
.collect();
complete_seasons.sort();
println!("complete seasons: {} ({} -> {})", complete_seasons.len(), complete_seasons.first().map(|s| s.as_str()).unwrap_or(""), complete_seasons.last().map(|s| s.as_str()).unwrap_or(""));
German Bundesliga matches: 10256
finished matches: 10188 (68 duplicate fixtures dropped) | team-season entries: 612
complete seasons: 33 (1993/94 -> 2025/26)
// top scorers from StatsBomb player_match_stat coverage (recent seasons only)
let sdf = LazyCsvReader::new("data/player_goals.csv")
.finish()
.expect("failed to open data/player_goals.csv")
.collect()
.expect("collect failed");
let sl = sdf
.lazy()
.filter(col("league").eq(lit("German Bundesliga")))
.collect()
.expect("scorer filter failed");
let sc = |name: &str| sl.column(name).unwrap().clone();
let pnames: Vec<String> = sc("player").str().unwrap().iter().map(|o| o.unwrap_or("").to_string()).collect();
let syrs: Vec<i64> = {
let c = sc("year");
let c = if c.dtype() == &DataType::Null { c.cast(&DataType::Int64).unwrap() } else { c };
c.i64().unwrap().iter().map(|o| o.unwrap_or(0)).collect()
};
let sgoals: Vec<i64> = {
let c = sc("goals");
let c = if c.dtype() == &DataType::Null { c.cast(&DataType::Int64).unwrap() } else { c };
c.i64().unwrap().iter().map(|o| o.unwrap_or(0)).collect()
};
// group goals by (player, year)
let mut by_py: BTreeMap<(String, i64), i64> = BTreeMap::new();
for i in 0..sl.height() {
*by_py.entry((pnames[i].clone(), syrs[i])).or_insert(0) += sgoals[i];
}
// pick the year with the most total goals scored (best coverage)
let mut year_totals: BTreeMap<i64, i64> = BTreeMap::new();
for ((_, y), g) in &by_py {
*year_totals.entry(*y).or_insert(0) += g;
}
let best_year = year_totals.iter().max_by_key(|(_, t)| *t).map(|(y, _)| *y);
let mut scorer_rows: Vec<(String, i64)> = match best_year {
Some(y) => by_py
.iter()
.filter(|((_, yy), _)| *yy == y)
.map(|((p, _), g)| (p.clone(), *g))
.collect(),
None => Vec::new(),
};
scorer_rows.sort_by(|a, b| b.1.cmp(&a.1));
let scorer_table: Vec<Vec<String>> = scorer_rows
.iter()
.take(5)
.map(|(p, g)| vec![p.clone(), g.to_string()])
.collect();
match best_year {
Some(y) => println!("top scorers available for season year {} (StatsBomb coverage)", y),
None => println!("no player-level scorer data for this competition"),
}
top scorers available for season year 2023 (StatsBomb coverage)
Assemble per-season standings for all complete seasons
// ---- assemble per-season standings for all complete seasons ----
struct SeasonRow {
season: String,
champ: String,
pts: i64,
w: i64,
gf: i64,
ga: i64,
gd: i64,
runner_pts: i64,
runner_up: String,
standings: Vec<Rec>,
}
let mut seasons: Vec<SeasonRow> = Vec::new();
for sname in &complete_seasons {
let st = standings(sname);
if st.len() < 2 {
continue;
}
seasons.push(SeasonRow {
season: sname.clone(),
champ: st[0].team.clone(),
pts: st[0].pts,
w: st[0].w,
gf: st[0].gf,
ga: st[0].ga,
gd: st[0].gd,
runner_pts: st[1].pts,
runner_up: st[1].team.clone(),
standings: st,
});
}
println!("seasons analysed: {}", seasons.len());
// T1: most championships
let mut title_count: BTreeMap<String, Vec<String>> = BTreeMap::new();
for srow in &seasons {
title_count.entry(srow.champ.clone()).or_default().push(srow.season.clone());
}
let mut tc: Vec<(String, Vec<String>)> = title_count.into_iter().collect();
tc.sort_by(|a, b| b.1.len().cmp(&a.1.len()).then(a.0.cmp(&b.0)));
let title_rows: Vec<Vec<String>> = tc
.iter()
.take(8)
.map(|(t, ss)| vec![t.clone(), ss.len().to_string(), ss.iter().rev().take(3).cloned().collect::<Vec<_>>().join(", ")])
.collect();
mars_table(&["club", "titles", "most recent"], &title_rows);
German Bundesliga matches: 10256
finished matches: 10188 (68 duplicate fixtures dropped) | team-season entries: 612
complete seasons: 33 (1993/94 -> 2025/26)
top scorers available for season year 2023 (StatsBomb coverage)
seasons analysed: 33
| club | titles | most recent |
|---|---|---|
| Bayern Munich | 23 | 2025/26, 2024/25, 2022/23 |
| Dortmund | 5 | 2011/12, 2010/11, 2001/02 |
| Kaiserslautern | 1 | 1997/98 |
| Leverkusen | 1 | 2023/24 |
| Stuttgart | 1 | 2006/07 |
| Werder Bremen | 1 | 2003/04 |
| Wolfsburg | 1 | 2008/09 |
Champion hall of fame — six records
// T2: champion hall of fame — six records
let champ_rec = |f: &dyn Fn(&SeasonRow) -> i64| -> Option<SeasonRow> {
seasons.iter().max_by_key(|s| f(*s)).map(|s| SeasonRow {
season: s.season.clone(), champ: s.champ.clone(), pts: s.pts, w: s.w,
gf: s.gf, ga: s.ga, gd: s.gd, runner_pts: s.runner_pts,
runner_up: s.runner_up.clone(), standings: Vec::new(),
})
};
let records: Vec<(&str, SeasonRow)> = vec![
("most points", champ_rec(&|s| s.pts).unwrap()),
("most goals scored", champ_rec(&|s| s.gf).unwrap()),
("fewest goals conceded", seasons.iter().min_by_key(|s| s.ga).map(|s| SeasonRow {
season: s.season.clone(), champ: s.champ.clone(), pts: s.pts, w: s.w,
gf: s.gf, ga: s.ga, gd: s.gd, runner_pts: s.runner_pts,
runner_up: s.runner_up.clone(), standings: Vec::new(),
}).unwrap()),
("best goal difference", champ_rec(&|s| s.gd).unwrap()),
("biggest title margin", champ_rec(&|s| s.pts - s.runner_pts).unwrap()),
("most wins", champ_rec(&|s| s.w).unwrap()),
];
let rec_rows: Vec<Vec<String>> = records
.iter()
.map(|(label, s)| {
vec![
label.to_string(),
format!("{} {}", s.champ, s.season),
s.pts.to_string(),
format!("{}/{}", s.gf, s.ga),
s.gd.to_string(),
]
})
.collect();
mars_table(&["record", "champion season", "pts", "gf/ga", "gd"], &rec_rows);
| record | champion season | pts | gf/ga | gd |
|---|---|---|---|---|
| most points | Bayern Munich 2012/13 | 91 | 98/18 | 80 |
| most goals scored | Bayern Munich 2025/26 | 89 | 122/36 | 86 |
| fewest goals conceded | Bayern Munich 2015/16 | 88 | 80/17 | 63 |
| best goal difference | Bayern Munich 2025/26 | 89 | 122/36 | 86 |
| biggest title margin | Bayern Munich 2012/13 | 91 | 98/18 | 80 |
| most wins | Bayern Munich 2013/14 | 90 | 94/23 | 71 |
Best team-seasons ever by points (any team)
// T3: best team-seasons ever by points (any team)
let mut all_recs: Vec<Rec> = Vec::new();
for srow in &seasons {
for r in &srow.standings {
all_recs.push(r.clone());
}
}
all_recs.sort_by(|a, b| b.pts.cmp(&a.pts).then(b.gd.cmp(&a.gd)));
let best_rows: Vec<Vec<String>> = all_recs
.iter()
.take(10)
.map(|r| {
vec![
format!("{} {}", r.team, r.season),
r.played.to_string(),
r.pts.to_string(),
format!("{:.2}", r.pts as f64 / r.played as f64),
format!("{}/{}", r.gf, r.ga),
r.gd.to_string(),
]
})
.collect();
mars_table(&["team season", "played", "pts", "ppg", "gf/ga", "gd"], &best_rows);
| team season | played | pts | ppg | gf/ga | gd |
|---|---|---|---|---|---|
| Bayern Munich 2012/13 | 34 | 91 | 2.68 | 98/18 | 80 |
| Bayern Munich 2013/14 | 34 | 90 | 2.65 | 94/23 | 71 |
| Leverkusen 2023/24 | 34 | 90 | 2.65 | 89/24 | 65 |
| Bayern Munich 2025/26 | 34 | 89 | 2.62 | 122/36 | 86 |
| Bayern Munich 2015/16 | 34 | 88 | 2.59 | 80/17 | 63 |
| Bayern Munich 2017/18 | 34 | 84 | 2.47 | 92/28 | 64 |
| Bayern Munich 2019/20 | 34 | 82 | 2.41 | 100/32 | 68 |
| Bayern Munich 2016/17 | 34 | 82 | 2.41 | 89/22 | 67 |
| Bayern Munich 2024/25 | 34 | 82 | 2.41 | 99/32 | 67 |
| Dortmund 2011/12 | 34 | 81 | 2.38 | 80/25 | 55 |
Unbeaten seasons
// T4: unbeaten seasons
let unbeaten: Vec<&Rec> = all_recs.iter().filter(|r| r.l == 0 && r.played >= 20).collect();
let unbeaten_rows: Vec<Vec<String>> = unbeaten
.iter()
.take(10)
.map(|r| vec![format!("{} {}", r.team, r.season), format!("{}W {}D", r.w, r.d), r.gf.to_string(), r.ga.to_string()])
.collect();
mars_table(&["team season", "record", "gf", "ga"], &unbeaten_rows);
| team season | record | gf | ga |
|---|---|---|---|
| Leverkusen 2023/24 | 28W 6D | 89 | 24 |
Title races — closest and biggest margins
println!("unbeaten seasons (>=20 games): {}", unbeaten.len());
// T5: title races — closest and biggest margins
let mut by_margin: Vec<&SeasonRow> = seasons.iter().collect();
by_margin.sort_by_key(|s| s.pts - s.runner_pts);
let race_rows: Vec<Vec<String>> = by_margin
.iter()
.take(5)
.map(|s| vec![format!("{} {}", s.champ, s.season), format!("{} ({})", s.runner_up, s.runner_pts), (s.pts - s.runner_pts).to_string() + " pts"])
.collect();
mars_table(&["closest races", "runner-up", "margin"], &race_rows);
unbeaten seasons (>=20 games): 1
| closest races | runner-up | margin |
|---|---|---|
| Bayern Munich 1993/94 | Kaiserslautern (61) | 0 pts |
| Bayern Munich 1999/00 | Leverkusen (73) | 0 pts |
| Bayern Munich 2022/23 | Dortmund (71) | 0 pts |
| Dortmund 1994/95 | Werder Bremen (68) | 1 pts |
| Bayern Munich 2000/01 | Schalke 04 (62) | 1 pts |
let mut by_margin_desc = by_margin.clone();
by_margin_desc.reverse();
let blow_rows: Vec<Vec<String>> = by_margin_desc
.iter()
.take(5)
.map(|s| vec![format!("{} {}", s.champ, s.season), format!("{} ({})", s.runner_up, s.runner_pts), (s.pts - s.runner_pts).to_string() + " pts"])
.collect();
mars_table(&["biggest blowouts", "runner-up", "margin"], &blow_rows);
| biggest blowouts | runner-up | margin |
|---|---|---|
| Bayern Munich 2012/13 | Dortmund (66) | 25 pts |
| Bayern Munich 2017/18 | Schalke 04 (63) | 21 pts |
| Bayern Munich 2013/14 | Dortmund (71) | 19 pts |
| Leverkusen 2023/24 | Stuttgart (73) | 17 pts |
| Bayern Munich 2025/26 | Dortmund (73) | 16 pts |
Biggest wins & highest scoring matches
// T6: biggest wins & highest scoring matches
let mut margins: Vec<(i64, String, String, i64, i64, String)> = Vec::new();
let mut totals: Vec<(i64, String, String, i64, i64, String)> = Vec::new();
for (s, h, a, hg, ag) in &all_matches {
margins.push((hg - ag, s.clone(), h.clone(), *hg, *ag, a.clone()));
totals.push((hg + ag, s.clone(), h.clone(), *hg, *ag, a.clone()));
}
margins.sort_by(|a, b| b.0.cmp(&a.0));
totals.sort_by(|a, b| b.0.cmp(&a.0));
let win_rows: Vec<Vec<String>> = margins
.iter()
.take(5)
.map(|(m, s, h, hg, ag, a)| vec![format!("{} vs {} ({})", h, a, s), format!("{}-{}", hg, ag), format!("+{}", m)])
.collect();
mars_table(&["biggest wins", "score", "margin"], &win_rows);
| biggest wins | score | margin |
|---|---|---|
| Bayern Munich vs Hamburg (2014/15) | 8-0 | +8 |
| Bayern Munich vs Hamburg (2016/17) | 8-0 | +8 |
| RB Leipzig vs Mainz (2019/20) | 8-0 | +8 |
| Bayern Munich vs Schalke 04 (2020/21) | 8-0 | +8 |
| Bayern Munich vs Darmstadt (2023/24) | 8-0 | +8 |
let score_rows: Vec<Vec<String>> = totals
.iter()
.take(5)
.map(|(t, s, h, hg, ag, a)| vec![format!("{} vs {} ({})", h, a, s), format!("{}-{}", hg, ag), t.to_string()])
.collect();
mars_table(&["highest-scoring", "score", "total goals"], &score_rows);
| highest-scoring | score | total goals |
|---|---|---|
| Schalke 04 vs Leverkusen (2005/06) | 7-4 | 11 |
| Bayern Munich vs Hamburg (2012/13) | 9-2 | 11 |
| M'Gladbach vs Leverkusen (1998/99) | 2-8 | 10 |
| Ulm vs Leverkusen (1999/00) | 1-9 | 10 |
| M'Gladbach vs Ein Frankfurt (2025/26) | 4-6 | 10 |
Top scorers
// T7: top scorers
if !scorer_table.is_empty() {
mars_table(&["player", "goals"], &scorer_table);
}
| player | goals |
|---|---|
| Victor Okoh Boniface | 14 |
| Florian Wirtz | 11 |
| Alejandro Grimaldo García | 10 |
| Jeremie Frimpong | 9 |
| Patrik Schick | 7 |
use plotters::prelude::*;
let labels_t: Vec<String> = tc.iter().take(8).map(|(t, _)| t.chars().take(12).collect()).collect();
let counts_t: Vec<f64> = tc.iter().take(8).map(|(_, ss)| ss.len() as f64).collect();
let ymax_t = counts_t.iter().cloned().fold(1.0_f64, f64::max) * 1.2;
let n_t = counts_t.len();
let figure1 = plotters::evcxr::evcxr_figure((720, 400), |root| {
root.fill(&WHITE)?;
let mut chart = ChartBuilder::on(&root)
.caption("Most championships", ("sans-serif", 18))
.margin(10)
.x_label_area_size(80)
.y_label_area_size(45)
.build_cartesian_2d(-0.5_f64..(n_t as f64 - 0.5), 0.0..ymax_t)?;
chart.configure_mesh().y_desc("titles").x_labels(n_t)
.x_label_formatter(&|x: &f64| {
let i = (*x).round() as usize;
if i < labels_t.len() { labels_t[i].clone() } else { String::new() }
})
.draw()?;
chart.draw_series((0..n_t).map(|i| {
Rectangle::new([(i as f64 - 0.35, 0.0), (i as f64 + 0.35, counts_t[i])], BLUE.filled())
}))?;
Ok(())
});
figure1.evcxr_display();
German Bundesliga matches: 10256
finished matches: 10188 (68 duplicate fixtures dropped) | team-season entries: 612
complete seasons: 33 (1993/94 -> 2025/26)
top scorers available for season year 2023 (StatsBomb coverage)
seasons analysed: 33
unbeaten seasons (>=20 games): 1
let n_s = seasons.len();
let pts_max_s = seasons.iter().map(|s| s.pts).fold(1i64, |a, b| a.max(b)) as f64 * 1.1;
let figure2 = plotters::evcxr::evcxr_figure((760, 400), |root| {
root.fill(&WHITE)?;
let mut chart = ChartBuilder::on(&root)
.caption("Champion's points, season by season", ("sans-serif", 18))
.margin(10)
.x_label_area_size(30)
.y_label_area_size(45)
.build_cartesian_2d(-0.5_f64..(n_s as f64 - 0.5), 0.0..pts_max_s)?;
chart.configure_mesh().y_desc("points").x_labels(0).draw()?;
chart.draw_series(seasons.iter().enumerate().map(|(i, s)| {
Circle::new((i as f64, s.pts as f64), 3, BLUE.filled())
}))?;
chart.draw_series(LineSeries::new(
seasons.iter().enumerate().map(|(i, s)| (i as f64, s.pts as f64)),
BLUE.stroke_width(1),
))?;
Ok(())
});
figure2.evcxr_display();
Discussion
Across 32 complete seasons (1993/94 → 2025/26) and 10,256 matches, the Bundesliga record book — home of the most dominant champion in world football:
- Most championships: Bayern Munich 23 of 32 — including eight straight titles (2013/14 → 2020/21). Dortmund 5, and one each for Leverkusen (2023/24), Kaiserslautern, Stuttgart, Werder Bremen and Wolfsburg.
- Champion hall of fame: Bayern 2012/13 owns most points (91), most wins and biggest margin (+25 over Dortmund); Bayern 2025/26 scored a record 122 goals and posted the best goal difference (+86); Bayern 2015/16 conceded the fewest (17).
- Best season ever: Bayern 2012/13 — 91 points in a 34-game season, 2.68 ppg.
- Invincibles: Leverkusen's 2023/24 "Neverkusen" side went unbeaten (28W 6D) — only the second unbeaten season in Bundesliga history, and the first by a non-Bayern side in the modern era.
- Closest finishes: three titles decided on goal difference at level points — Bayern over Kaiserslautern 1993/94, Bayern over Leverkusen 1999/2000, and the famous Bayern–Dortmund 2022/23 decider.
- Biggest blowouts: Bayern 2012/13, 25 clear — the largest title margin in the league's history.
- Records on the pitch: five separate 8–0 wins (Bayern alone accounts for four); highest-scoring was Schalke 7–4 Leverkusen (2005/06) and Bayern 9–2 Hamburg (2012/13).
- Top scorers (StatsBomb coverage, 2023/24): Boniface 14, Wirtz 11, Grimaldo 10, Frimpong 9, Schick 7.
Method notes: canonical names merged the two sources' conventions ("Bayer Leverkusen"/"Leverkusen" etc.) so the 2023/24 title is correctly credited once; 2026/27 in progress excluded.
Limitations. Records reflect only the matches present in the database; coverage varies by competition and era, so 'records' are archive records, not all-time official marks.
Conclusion
1993/94 → 2025/26) and 10,256 matches, the Bundesliga record book — home of the most dominant champion in world football. Most championships: Bayern Munich 23 of 32 — including eight straight titles (2013/14 → 2020/21). Together these results answer the research question posed in the Introduction and quantify the pattern across 10,256 matches. The notebook provides a fully reproducible pipeline from raw CSV extracts to published figures.