About the Data
Every number in this book about a real player, team, match or league comes from one of two places: the
Cricsheet ball-by-ball data described on this page, downloaded by the book's toolkit, or the
reference tables in data/reference/, compiled from cited public sources. This page explains exactly
what those contain, what they leave out, and what changes if you download newer data. Read it before you
trust a number — including the book's.
The snapshot
The book's data was downloaded from Cricsheet on 18 November 2026. It contains:
- 6,420,141 deliveries
- from 17,186 matches
- across 20 competition archives: men's and women's internationals in all formats Cricsheet publishes, and fourteen franchise and domestic T20 competitions.
| Code | Competition | Matches | Deliveries | First match | Last match |
|---|---|---|---|---|---|
tests_male |
Men's Test matches | 899 | 1,730,523 | 19 Dec 2001 | 28 Oct 2026 |
odis_male |
Men's One-Day Internationals | 2,617 | 1,388,641 | 27 Jun 2002 | 2 Nov 2026 |
t20s_male |
Men's T20 Internationals | 3,649 | 820,658 | 17 Feb 2005 | 1 Nov 2026 |
it20s_male |
Men's non-official international T20s | 240 | 52,749 | 4 Jun 2010 | 26 May 2024 |
odis_female |
Women's One-Day Internationals | 620 | 324,744 | 22 Jan 2007 | 28 Oct 2026 |
t20s_female |
Women's T20 Internationals | 2,200 | 499,978 | 18 Jun 2009 | 25 Oct 2026 |
ipl |
Indian Premier League | 1,243 | 295,732 | 18 Apr 2008 | 31 May 2026 |
bbl |
Big Bash League | 662 | 153,250 | 16 Dec 2011 | 25 Jan 2026 |
psl |
Pakistan Super League | 357 | 83,799 | 4 Feb 2016 | 3 May 2026 |
cpl |
Caribbean Premier League | 445 | 103,717 | 30 Jul 2013 | 20 Sep 2026 |
sat |
SA20 | 130 | 29,020 | 10 Jan 2023 | 25 Jan 2026 |
ilt |
International League T20 | 134 | 31,407 | 13 Jan 2023 | 4 Jan 2026 |
mlc |
Major League Cricket | 109 | 25,529 | 13 Jul 2023 | 18 Jul 2026 |
bpl |
Bangladesh Premier League | 469 | 111,232 | 11 Feb 2012 | 23 Jan 2026 |
lpl |
Lanka Premier League | 143 | 32,917 | 26 Nov 2020 | 8 Aug 2026 |
ntb |
Vitality T20 Blast | 1,570 | 360,545 | 16 May 2014 | 18 Jul 2026 |
sma |
Syed Mushtaq Ali Trophy | 695 | 158,839 | 2 Jan 2016 | 15 Dec 2024 |
hnd |
The Hundred (men's and women's) | 389 | 75,636 | 21 Jul 2021 | 16 Aug 2026 |
wpl |
Women's Premier League | 88 | 20,656 | 4 Mar 2023 | 5 Feb 2026 |
wbb |
Women's Big Bash League | 527 | 120,569 | 18 Dec 2015 | 2 Nov 2026 |
| Total | 17,186 | 6,420,141 |
The codes in the first column are the names you pass to the toolkit: load_deliveries("ipl"),
load_matches("tests_male"). The dates are the start dates of the first and last matches in each
archive.
A few things in that table matter for analysis:
- The data is modern and T20-heavy. Men's Tests start in December 2001 and the IPL in April 2008; there is no Bradman, no Sobers, no 1983 World Cup. For earlier history you need aggregate sources such as ESPNcricinfo's Statsguru. Any "all cricket" statistic computed from this snapshot is dominated by T20 matches since 2015.
- Women's cricket is substantial: 3,623 matches across women's ODIs, T20 internationals, the WPL, the WBBL and the women's Hundred (188 of the Hundred's 389 matches; the other 201 are men's). There are no women's Tests in the snapshot.
- Coverage can lapse. The Syed Mushtaq Ali Trophy stops in December 2024 and the non-official men's internationals in May 2024. Don't assume every competition has its latest season.
- The Hundred is stored as
T20with five-ball sets. Filter ongenderbefore analysing it, and remember that its phases are defined by balls (1–25, 26–75, 76–100), not overs. - IPL season labels are strings, and some span two calendar years in Cricsheet's labelling
(
"2007/08"is IPL 2008,"2020/21"is IPL 2020). Chapter 2 shows how to convert them.
What is withheld: Afghanistan's men's internationals
Cricsheet withholds matches featuring the Afghanistan men's team (and matches in the Afghanistan
Premier League) by policy; each affected archive's README.txt says so and links to the policy. In this
snapshot that means 14 men's Tests, 162 men's ODIs, 166 men's T20 internationals and 10 non-official
men's T20s are missing.
Two consequences follow. Afghan players — Rashid Khan, Noor Ahmad, Mujeeb Ur Rahman, Rahmanullah Gurbaz, Mohammad Nabi and others — appear only through the franchise leagues, so this book never presents an international or "career" figure for them. And any baseline computed from "all men's T20Is" or "all men's ODIs" is missing Afghanistan's matches and their opponents' innings in them. Where that matters, the book says so.
What Cricsheet records
Cricsheet publishes one JSON file per match. The toolkit flattens each archive into two tables.
The deliveries table (42 columns, one row per delivery, legal or not) records, for every ball: the match, innings and over; the batter, the non-striker and the bowler; runs off the bat, extras by type (wides, no-balls, byes, leg-byes, penalty runs) and total runs; whether the ball was legal; fours and sixes; any wicket, its kind, the player out and the fielders involved; the phase of the innings; the target in a chase (in limited-overs matches); whether the innings was declared; and the match's season, date, venue and gender.
The matches table (27 columns, one row per match) records the teams, venue, city, dates, the competition and stage, the toss and the decision, the result and margin, the method if a rain rule was used, the overs per side, and the player of the match.
Every player on every delivery carries a registry identifier (batter_id, bowler_id,
non_striker_id, player_out_id). Cricsheet also publishes a people register — about 18,700 people
in this snapshot — that links each identifier to other databases, including ESPNcricinfo. The toolkit's
load_people() downloads it.
What Cricsheet does not record
Being clear about this is the difference between analysis and wishful thinking. The data has:
- no line or length — where the ball pitched;
- no shot direction or wagon-wheel location — where the ball went;
- no ball speed, swing, seam or spin measurements;
- no Hawk-Eye or DRS ball-tracking values;
- no fielding positions;
- no dropped catches or misfields (catches, run-outs and stumpings taken are recorded);
- no batting-position labels (batting order has to be inferred from when each batter first appears);
- no player roles (who keeps wicket, who is an all-rounder, who is the captain);
- no stored target for Test fourth innings (it is computed from the innings totals);
- and a few innings-level items, such as penalty runs awarded outside a delivery, that are not in the delivery rows — so a handful of Test totals computed from deliveries differ from the scorecard by a run or two.
Cricsheet is also not the official record. It is built from its own sources and can differ from official statistics by a run or a match, especially for older games. When the book compares a figure with a well-known official one, it says so.
Names are not unique
Each player appears under one Cricsheet spelling, and spellings collide. There are three different men called "Rashid Khan" in the men's T20 internationals, and seventy names shared by two or more people within single competitions. Spellings can also surprise you: Chamari Athapaththu appears as "AC Jayangani"; Nat Sciver-Brunt appears both as "NR Sciver" and as "NR Sciver-Brunt" (one player), while "KH Sciver-Brunt" is a different player.
The rule throughout the book: when you aggregate a named player across competitions, pin the person by
registry identifier. The toolkit's only_player(balls, name) does this, and
Chapter 2 explains how it works.
The reference tables
Two tables in data/reference/ add what Cricsheet does not have. Each has a *_SOURCES.md file beside
it that lists every source, the method, and every correction made.
ipl_auction.csv — IPL player acquisitions, 2022–2026 (879 rows). One row per player acquisition:
378 mega-auction purchases, 229 mini-auction purchases, 242 retentions, 22 trades and 8 right-to-match
signings, with price (in ₹ lakh), base price, team, nationality, capped status and role. It was built
from fixed revisions of public season-by-season records and cross-checked, season by season, against
independent published lists; the corrections are documented, and after them each season's auction total
matches the published figure. 91% of rows are matched to a Cricsheet name, so price can be joined to
performance. Note that a retained player's listed salary can differ from the amount deducted from a
franchise's purse.
player_styles.csv — batting hand and bowling style (2,011 rows). One row per player — 1,421 men
and 590 women — giving batting hand, bowling style (in the familiar descriptive form, such as "Right-arm
offbreak", "Slow left-arm orthodox" or "Left-arm fast-medium"), bowling type (pace or spin) and bowling arm. Players were included
if they had enough balls in the snapshot to matter. Each identity was traced from the Cricsheet register
to its ESPNcricinfo identifier and public reference records, with web sources for players lacking them.
Each row has a confidence grade (1,601 high, 381 medium, 29 low) and a note where a name is shared. The
table types the bowler of about 97% of legal balls in men's Tests and 96.6% of IPL 2026 legal balls, which
is what makes the spin-against-pace and matchup chapters possible.
The toolkit's venues.py adds a third, smaller layer: each venue's host country and the book's
conditions shorthand (SENA, Subcontinent, West Indies, UAE, Other), and whether the batting side was at
home, away or at a neutral ground.
The simulated tracking layer
The most useful data in modern cricket analysis — where each ball pitched, how fast it was, where it passed the stumps, where the batter hit it — is collected by ball-tracking systems and sold to broadcasters, boards and teams. It is not public. Yet pitch maps, beehives, wagon wheels, delivery clustering and expected-wickets models are skills every analyst needs, and they cannot be learned without data to practise on.
So the toolkit's tracking_sim.py attaches simulated tracking columns to real deliveries. Every
column it adds begins with sim_: length and line, pitching distance, speed, swing, spin rate, the
ball's position as it reaches the stumps, and the shot's angle, distance and zone. The simulation is
built so that it behaves sensibly:
- Each simulated location is drawn conditioned on the real outcome of that delivery — a real six is more likely to have been a ball in the slot or a short ball, a real bowled or LBW more likely to have been full and straight — and on format, phase and the bowler's real bowling type.
- Each bowler and batter has a stable simulated "signature", so a bowler's pitch map looks like the same bowler from match to match. The signature is not that real player's actual signature.
- It is seeded and deterministic: the same input gives the same simulated columns.
The rules for using it are strict, and the book follows them everywhere:
- Every use is labelled with a 🧪 Simulated data callout, and every chart built on it says "simulated tracking layer — real outcomes, simulated locations" in its title or caption.
- No
sim_number is ever stated as a fact about a real player. "This bowler's yorker length is 1.3 metres" is never a sentence this book will write. - The book teaches the method on the simulated layer, then explains what an analyst with the real tracking feed would see differently — and, in Chapter 15, deliberately audits the simulation to show how simulated data can mislead a careless analyst.
Licences and attribution
Cricsheet's data is released under the Open Data Commons Attribution Licence (ODC-By). You may use, share and adapt it, including commercially, provided you attribute the source. The licence text is in each downloaded archive. If you publish an analysis built on this book's data, credit Cricsheet — for example, "Ball-by-ball data: Cricsheet (cricsheet.org), ODC-By." (This is a summary, not legal advice; read the licence itself.)
The reference tables record facts gathered from the public sources listed in their *_SOURCES.md
files. If you republish them, cite those sources as well as this book.
The book itself — text, figures and documentation — is licensed under CC BY-SA 4.0, and its code
under CC BY-SA 4.0 or, at your option, MIT. See the title page and the LICENSE file.
Refreshing the data — and what will change
The toolkit never updates its cache by itself. That is deliberate: it keeps every printed output in the
book reproducible. To bring a competition up to date, download the archive again and rebuild its tables.
From a Python session started in the toolkit/ folder (or with toolkit/ on your path):
from cricdata import download, build
download("ipl", force=True) # fetch the latest archive from Cricsheet
build("ipl", force=True) # re-parse it into the Parquet cache
Repeat for any other competition code. When you refresh, expect:
- More matches. New seasons, series and tournaments will appear, and every count, average and model fitted on "all the data" will shift a little.
- Revised matches. Cricsheet occasionally corrects earlier files; a refreshed archive may change a delivery or two in a match the book analyses.
- Printed outputs that no longer match exactly. The methods will still work, and the conclusions should mostly survive; the decimal places will not. To compare with the book, keep a copy of the snapshot.
- Reference tables that do not update. The auction table stops at 2026, and players who debut after
the snapshot will be missing from the styles table, so bowling-type coverage of new seasons will fall
until you extend it. Each
*_SOURCES.mdfile explains how the table was built, so you can extend it the same way. - Different simulated tracking values. The simulated layer depends on the exact set of deliveries
passed to it, so new matches change it. That is another reason never to treat a
sim_number as a fact. - Possible changes in coverage. Cricsheet's policies and competition coverage can change. Check the
README.txtin each new archive.
The snapshot is a fixed point in a game that keeps moving. The point of the book is not the numbers it prints but the ability to compute them again, on whatever data comes next.