Chapter 2. Python Fundamentals: Building Your Analytics Toolkit
In Chapter 1, we mapped the analytical landscape of soccer and clarified the focus of this book: using data to describe matches, explain patterns, and build predictions. To do that well, however, we need more than ideas. We need a reliable computational environment in which analysis can be written, tested, reproduced, and extended.
Python is that environment for the rest of the book. It gives us a readable language, a mature ecosystem of data tools, and a practical workspace for moving from raw data to analytical output. Before we analyze matches, engineer features, or train predictive models, we first need to set up that workspace and become comfortable with its core habits.
This chapter therefore builds the foundation for everything that follows. You will install Python, create an isolated working environment, use Jupyter Notebook, and learn the syntax and data structures that later chapters rely on. The material is introductory, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access