Affiliate disclosure

Book titles on this page link to Amazon. As an Amazon Associate, DataField.Dev earns from qualifying purchases — at no additional cost to you.

Chapter 2 — Further Reading

Cricsheet (cricsheet.org) — the downloads, register and format pages. The source of every ball-by-ball number in this book. Read the JSON format description (linked from each archive's README.txt) alongside §2.3, and the people register page alongside §2.9. For everyone who will run the code; essential for the Analyst Track.

The README.txt and LICENSE.txt inside each Cricsheet archive. Not glamorous, but the README lists every match in the archive and states what has been withheld, and the licence file gives the exact terms of the Open Data Commons Attribution License. For anyone publishing work built on the data.

ESPNcricinfo Statsguru. The query engine behind ESPNcricinfo's records — the reference most journalists use, with history long before Cricsheet's coverage begins. Use it to cross-check career lines via the key_cricinfo ids in the people register (Exercise E2), one query at a time. For readers who want to check the book's numbers against the published record.

Howstat and CricketArchive. Two long-running statistical databases: Howstat for Test and ODI records and scorecards, CricketArchive (much of it by subscription) for scorecards at every level including domestic and minor cricket. For historical and lower-level research beyond Cricsheet's scope.

Wes McKinney, Python for Data Analysis. Written by the creator of pandas; the standard guide to the DataFrame idioms used in this chapter — selection, boolean masks, groupby, merge, reading Parquet. For readers new to pandas, alongside Chapter 3.

Hadley Wickham and co-authors, R for Data Science. The R counterpart: tidy data, importing, transforming and visualising. Its idea of "tidy data" — one row per observation, one column per variable — is exactly what parse_match() produces. For R users and anyone who wants the principles behind table design.

The yorkr and cricketr R packages (Tinniam V. Ganesh). Open-source R packages: yorkr analyses Cricsheet ball-by-ball data; cricketr works from ESPNcricinfo Statsguru records. Both come with extensive documentation and worked examples. For R users who want a ready-made toolkit to compare with this book's Python one.

Max Marchi, Jim Albert and Benjamin S. Baumer, Analyzing Baseball Data with R. Baseball's equivalent of this chapter, done well: how play-by-play data is structured, loaded and audited before analysis. For readers who want to see how another sport built its data foundations.

MCC, The Laws of Cricket, and the ICC Playing Conditions. The definitions behind the data: what makes a delivery a wide or a no-ball, when a batter is out, how penalty runs are awarded, how the powerplay restricts fielders. Read Law 21 (no ball), Law 22 (wide ball) and Law 41 (unfair play, which covers penalty runs) alongside §2.5 and §2.7. See also Appendix E. For anyone whose code makes a decision about legality.

This book's appendices. Appendix A (Python and pandas for cricket) and Appendix B (every column of the deliveries and matches tables, and every toolkit function) are the reference versions of this chapter. Keep Appendix B open while you work.