Case Study 2 — A World Cup in One DataFrame: The 2025 Women's ODI World Cup
Setup
On 2 November 2025, at the Dr DY Patil Sports Academy in Navi Mumbai, India beat South Africa by 52 runs to win the final of the ICC Women's World Cup. Shafali Verma made 87 and was player of the match; Deepti Sharma made 58 and took five wickets; Laura Wolvaardt, South Africa's captain, made a hundred in defeat.
Case Study 1 rebuilt one men's T20 match and asked a single question of it. This case study is different in three ways. It is women's cricket. It is the 50-over format, with different phases and a different rhythm. And its unit is not a match but a whole tournament — thirty matches turned into leaderboards, team tables and one final, using Chapter 3's tools. Along the way it walks straight into two of the chapter's traps — season labels that are not years, and missing values that quietly distort an average — which makes it a good test of whether the habits have stuck.
Data: the book's women's ODI table (odis_female). Script: code/case_study_02.py.
The data
Finding the tournament
The obvious filter is on season. The obvious filter is wrong. Group the World Cup matches by their season label first:
wc = games[games["event_name"] == "ICC Women's World Cup"]
print(wc.groupby("season")["start_date"].agg(["size", "min", "max"]))
Women's World Cup matches in the data, by season label:
size min max
season
2008/09 1 2009-03-10 2009-03-10
2012/13 10 2013-01-31 2013-02-17
2017 30 2017-06-24 2017-07-23
2021/22 31 2022-03-04 2022-04-03
2025/26 30 2025-09-30 2025-11-02
The 2025 tournament is labelled '2025/26' — the cricket-season convention of the host country — while the 2017 edition is plain '2017'. The 2022 tournament, played in March and April 2022, is '2021/22'. Search for season == "2025" and you get nothing. The table also shows that Cricsheet's coverage of the older tournaments is partial in this snapshot — one match from 2009 and ten from 2013 — so any "World Cup history" built from this table must say which tournaments are complete. We filter by date instead:
wc25 = wc[wc["start_date"].dt.year == 2025]
2025 tournament: matches 30
result
win 25
no result 5
stage
None 27
Semi Final 2
Final 1
Thirty matches in the data: 27 league games (no stage), two semi-finals and a final. Five ended with no result, and the script also reports that four were decided with a D/L revision:
methods used in the tournament: {'none': 26, 'D/L': 4}
That is a wet tournament — nine of thirty matches affected by weather one way or another — and it matters below.
The final's scorecard
MID = explore.find_matches(wc25, stage="Final")["match_id"].iloc[0]
print(explore.format_scorecard(balls, games, MID))
India v South Africa - ICC Women's World Cup Final
Dr DY Patil Sports Academy, Navi Mumbai, 2025-11-02
India 298/7 (50 ov)
S Mandhana c S Jafta b CL Tryon 45 58 8 0 77.6
Shafali Verma c S Luus b A Khaka 87 78 7 2 111.5
JI Rodrigues c L Wolvaardt b A Khaka 24 37 1 0 64.9
H Kaur b N Mlaba 20 29 2 0 69.0
DB Sharma run out (S Jafta; CL Tryon) 58 58 3 1 100.0
AB Kaur c & b N de Klerk 12 14 1 0 85.7
RM Ghosh c A Dercksen b A Khaka 34 24 3 2 141.7
RP Yadav not out 3 3 0 0 100.0
Extras 15 (w 12, nb 1, b 0, lb 2, pen 0)
FoW: 1-104 (S Mandhana, 17.4), 2-166 (Shafali Verma, 27.5), 3-171 (JI Rodrigues, 29.4), 4-223 (H Kaur, 38.6), 5-245 (AB Kaur, 43.1), 6-292 (RM Ghosh, 48.6), 7-298 (DB Sharma, 49.6)
Bowling O M R W Econ
M Kapp 10 1 59 0 5.90
A Khaka 9 0 58 3 6.44
N Mlaba 10 0 47 1 4.70
N de Klerk 9 0 52 1 5.78
S Luus 5 0 34 0 6.80
CL Tryon 7 0 46 1 6.57
South Africa 246/10 (45.3 ov)
L Wolvaardt c AB Kaur b DB Sharma 101 98 11 1 103.1
T Brits run out (AB Kaur) 23 35 2 1 65.7
A Bosch lbw b N Shree Charani 0 6 0 0 0.0
S Luus c & b Shafali Verma 25 31 4 0 80.7
M Kapp c RM Ghosh b Shafali Verma 4 5 0 0 80.0
S Jafta c RP Yadav b DB Sharma 16 29 1 0 55.2
A Dercksen b DB Sharma 35 37 1 2 94.6
CL Tryon lbw b DB Sharma 9 8 1 0 112.5
N de Klerk c H Kaur b DB Sharma 18 19 3 0 94.7
A Khaka run out (DB Sharma; RM Ghosh) 1 7 0 0 14.3
N Mlaba not out 0 0 0 0
Extras 14 (w 12, nb 2, b 0, lb 0, pen 0)
FoW: 1-51 (T Brits, 9.3), 2-62 (A Bosch, 11.5), 3-114 (S Luus, 20.2), 4-123 (M Kapp, 22.1), 5-148 (S Jafta, 29.3), 6-209 (A Dercksen, 39.3), 7-220 (L Wolvaardt, 41.1), 8-221 (CL Tryon, 41.4), 9-246 (A Khaka, 44.6), 10-246 (N de Klerk, 45.3)
Bowling O M R W Econ
Renuka Singh 8 0 28 0 3.50
K Goud 3 0 16 0 5.33
AB Kaur 4 0 34 0 8.50
DB Sharma 9.3 0 39 5 4.11
N Shree Charani 9 0 48 1 5.33
RP Yadav 5 0 45 0 9.00
Shafali Verma 7 0 36 2 5.14
Result: India won by 52 runs
Player of the match: Shafali Verma
The same function that printed an IPL final in Chapter 3 printed this one without a single change — 50 overs, an innings that ended at 45.3, a bowler with a maiden (Marizanne Kapp), a final-ball run-out that made Deepti Sharma's 58 end as a dismissal (7-298 (DB Sharma, 49.6)), and the last batter, Nonkululeko Mlaba, "not out" without facing a ball (her strike rate is blank, not zero — the None-not-zero choice from Chapter 3's productive struggle, in action).
Analysis
The final, by phase
An ODI has its own phases: powerplay overs 1–10, middle overs 11–40, death 41–50. The toolkit's phase column already knows that, so the Chapter 3 recipe — groupby on two keys, then a computed column — works unchanged:
ph = fin.groupby(["batting_team", "phase"]).agg(runs=("runs_total", "sum"),
legal=("is_legal", "sum"),
wkts=("is_wicket", "sum"))
ph["run_rate"] = (6 * ph["runs"] / ph["legal"]).round(2)
The final by phase:
runs legal wkts run_rate
batting_team phase
India powerplay 64 60 0 6.40
middle 165 180 4 5.50
death 69 60 3 6.90
South Africa powerplay 52 60 1 5.20
middle 159 180 5 5.30
death 35 33 4 6.36

📊 Figure (described): Paired bars for each of the 50 overs — India blue, South Africa orange — with open circles for wickets and dashed lines separating the powerplay (1–10), middle overs (11–40) and death (41–50). India's bars are steadier through the middle overs; South Africa's include the tallest single over of the match (17 runs, in the 32nd, off Radha Yadav) but also clusters of wickets around overs 40–46, where their innings ended at 45.3 overs.
The phase table explains the 52-run margin better than either total. India's openers put on 64 without loss in the first ten overs (Mandhana and Shafali's stand ended at 104 in the 18th over). South Africa, at 52 for 1, were 12 runs behind after the powerplay — a gap, not a collapse. Through the long middle 30 overs the two sides scored almost identically: 165 against 159. The match was decided at the death. India scored 69 off their last ten overs and lost three wickets. South Africa lost four wickets in 33 legal balls, scored 35, and were bowled out with 27 balls unused. Wolvaardt's dismissal for 101 at 220 for 7 in the 42nd over — caught by Amanjot Kaur off Deepti — was the hinge: Annerie Dercksen had gone at 209, and after Wolvaardt two wickets fell for one run (7-220, 8-221).
The tournament's leaderboards
Now the whole tournament. The key move is one line: use the tournament's match ids to filter the deliveries, with .isin():
t = balls[balls["match_id"].isin(wc25["match_id"])]
print(explore.top_batters(t, n=8))
print(explore.top_bowlers(t, n=6))
deliveries in the 2025 tournament: 13835
Leading run-scorers:
innings runs balls outs average strike_rate
batter
L Wolvaardt 9 571 578 8 71.38 98.79
S Mandhana 9 434 438 8 54.25 99.09
A Gardner 5 328 252 4 82.00 130.16
Pratika Rawal 6 308 396 6 51.33 77.78
P Litchfield 7 304 271 6 50.67 112.18
AJ Healy 5 299 239 4 74.75 125.10
JI Rodrigues 7 292 289 5 58.40 101.04
SFM Devine 5 289 339 5 57.80 85.25
Leading wicket-takers:
matches overs runs wickets economy average
bowler
DB Sharma 9 81.2 449 22 5.52 20.41
A Sutherland 7 60.2 269 17 4.46 15.82
S Ecclestone 7 56.1 228 16 4.06 14.25
N Shree Charani 9 78.0 387 14 4.96 27.64
N Mlaba 9 61.0 295 13 4.84 22.69
A King 7 56.0 226 13 4.04 17.38
In the Cricsheet data, Laura Wolvaardt led the tournament with 571 runs at 71.38 and Deepti Sharma led the wicket-takers with 22. Look past the top line, though, and the innings column tells a story the runs column hides. Ash Gardner made 328 in five innings at an average of 82.00 and a strike rate of 130.16 — the fastest scorer on the list by a distance. Alyssa Healy made 299 in five. Wolvaardt and Mandhana had nine innings each, partly because their teams reached the final and semi-finals, partly because rain took fewer of their innings away. Aggregates reward opportunity; that is the first lesson of Chapter 4.
The bowling table has the same shape. Deepti's 22 wickets came from 81.2 overs — the most bowled by anyone in the top six — at an economy of 5.52. Sophie Ecclestone took 16 at an economy of 4.06 and an average of 14.25, from 25 fewer overs. Annabel Sutherland's average of 15.82 is also better than Deepti's. "Most wickets" and "best bowler" are different questions.
The trap: a team table built carelessly
The natural next step is a team table: innings, average total, best total, wins — a groupby on innings totals joined to a value_counts() of winners.
it = explore.innings_totals(t, wc25)
team = it.groupby("batting_team").agg(innings=("runs", "size"), avg_total=("runs", "mean"),
best=("runs", "max")).round(1)
Teams: innings batted, average and best total, wins
innings avg_total best wins
batting_team
Australia 7 252.0 338 6
South Africa 9 209.9 319 6
India 9 268.6 341 5
England 8 192.4 288 5
Bangladesh 7 168.6 232 1
New Zealand 5 226.8 271 1
Sri Lanka 5 188.0 258 1
Pakistan 7 89.9 159 0
Pakistan's average total of 89.9 should stop you cold. It is not a real measure of how Pakistan batted; it is an artefact of the rain. innings_totals includes every innings, including those cut short in matches that were then abandoned. Filter to matches won outright without a D/L revision and look again:
Same table, only matches won outright without D/L (no-result and rain-revised innings removed):
innings avg_total legal_balls
batting_team
India 6 291.8 297.2
Australia 7 252.0 240.4
New Zealand 4 215.8 269.2
South Africa 7 207.4 239.4
England 7 200.9 241.9
Sri Lanka 2 183.0 283.0
Bangladesh 6 176.8 270.7
Pakistan 3 134.0 236.0
innings in no-result matches: 7 | average legal balls in them: 130.9
size mean
batting_team
Bangladesh 1 119.0
England 1 133.0
India 1 57.0
Pakistan 3 48.0
Sri Lanka 1 258.0
Pakistan batted three times in no-result matches and averaged 48 in those innings — innings of, on average, about 22 overs across the seven no-result innings in the tournament. Remove them and Pakistan's average in completed, unrevised matches is 134.0. India's moves from 268.6 to 291.8, because their one no-result innings was 57. Sri Lanka's runs the other way: their one no-result innings was a full-length 258, so excluding it lowers their average, and leaves them with only two qualifying innings.
The legal_balls column is the check that exposes it. An average total means little unless you also know how many balls the innings had.
What it means (and doesn't)
What it means. Thirty matches, 13,835 deliveries, and four or five Chapter 3 idioms produced a tournament review — final scorecard, phase story, leaderboards and a team table — that is reproducible to the run. The same code works for any tournament in any competition in the data. That is the practical promise of learning pandas: not one analysis but a machine for analyses.
What it doesn't mean.
- The averages do not compare teams fairly. Even the cleaned table mixes opponents (Australia's seven innings were not against the same sides as Bangladesh's six) and conditions. And "matches with a winner, no D/L" is a filter that throws away real cricket: in a wet tournament it removes almost a third of the matches. Every filter is a trade-off between cleanliness and sample size. Chapter 22 treats venue and conditions properly.
- Wolvaardt's 571 is "in the Cricsheet data". Official tournament statistics can differ by a run or a match from Cricsheet, especially if a match is missing or recorded differently. If you quote the number in public, say where it comes from.
- The final's phase table is one match. "India won at the death" is a description of 2 November 2025, not a claim that India are a better death-overs batting side. Turning descriptions into claims needs many matches and the shrinkage ideas of Chapter 6.
- What the data doesn't see. The scorecard says Wolvaardt was caught by Amanjot Kaur off Deepti Sharma. It does not say where on the field, how hard the chance was, or what the field placing was. As in Case Study 1, the most-discussed moment of the match is recorded as a single word:
caught.
Discussion questions
- Deepti Sharma (22 wickets, economy 5.52) and Sophie Ecclestone (16 wickets, economy 4.06) top different columns. Using only the numbers in the bowling table, make the case for each as "bowler of the tournament". What extra information would settle it?
- The cleaned team table drops D/L-revised matches as well as no-results. Was that the right call for a "team batting strength" table? What would you lose and gain by keeping D/L matches but scaling totals to 50 overs?
- South Africa scored 159 in the middle overs to India's 165 but lost by 52. Write a three-sentence explanation for a newspaper reader, using the phase table.
- Ash Gardner averaged 82.00 at a strike rate of 130.16 from five innings. How would you present her tournament in a "player of the tournament" debate so that neither her excellence nor her small sample is hidden?
- The 2009 and 2013 tournaments are only partly in the data. If an editor asked you for "the highest total in Women's World Cup history" from this table, what would you say?
Your turn
Choose the 2022 tournament (season label '2021/22', played March–April 2022) or the 2017 tournament (label '2017'). For your tournament:
- Filter by date, not label, and confirm the number of matches, results and D/L matches.
- Print the final's scorecard with
explore.format_scorecardand the final's phase table. - Produce the top-8 batters and top-6 bowlers with
explore.top_batters/explore.top_bowlers, adding a minimum you choose and state (for example, at least 200 balls for strike-rate rankings). - Build both versions of the team table (naive and cleaned), and write 150 words on which one you would publish and why.
- Compare one phase run rate (powerplay, middle or death) for the tournament as a whole with the 2025 tournament's. Has the women's ODI game changed between the two?