Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Football Analytics with Python: Build a Pass Map
New

Football Analytics with Python: Build a Pass Map

Visualize real football passing data with Python, StatsBombPy, and mplsoccer.
Last updated 11/2026
English
English

What you'll learn

  • Load and filter real football passing data using Python and StatsBomb Open Data.
  • Extract pass coordinates and visualize passing directions on a football pitch.
  • Distinguish completed and incomplete passes using colors and legends.
  • Build, customize, and export a professional-looking football pass map with Python.

Course content

1 section • 6 lectures • 51m total length
  • What Is a Pass Map?4:01
  • Load and Prepare the Pass Data12:32
  • Plot Passes on a Football Pitch7:19
  • Add Pass Outcomes8:39
  • Build the Final Pass Map14:32
  • Your Challenge: Build Your Own Pass Map4:31

Requirements

  • No previous football analytics experience is required.
  • Basic familiarity with Python is helpful, but all code is explained step by step.
  • A computer, an internet connection, and a free Google account to use Google Colab.

Description

Learn Football Analytics with Python by building a complete pass map using real StatsBomb match data.

In this hands-on beginner course, you'll create a football passing visualization using data from Aitana Bonmatí during Spain's match against Costa Rica at the 2023 FIFA Women's World Cup.

Using Python, StatsBombPy, pandas, and mplsoccer in Google Colab, you'll transform raw passing events into a clear visualization showing where passes started, where they ended, and whether they were completed.

You'll learn how to filter player-specific events, extract pitch coordinates, draw directional arrows, and customize your final pass map.

By the end of the project, you'll have a reusable workflow for visualizing passing patterns from different players and matches.


What you'll learn:

  • Understand what a pass map is and how it can support football analysis.

  • Load real football event data using StatsBombPy.

  • Filter passing events and select a specific player.

  • Extract starting and ending coordinates from pass data.

  • Draw a football pitch using mplsoccer.

  • Visualize passes as directional arrows.

  • Differentiate completed and incomplete passes using colors.

  • Customize your visualization with titles, markers, legends, and data attribution.

  • Export your finished pass map as a high-quality image.


A practical project you can build yourself

This course focuses on learning by doing. You'll follow a complete Python workflow in Google Colab, with explanations of the code and visualization techniques along the way.

You'll also receive a Jupyter notebook containing the project code and a complementary PDF guide to help you review the concepts and repeat the process.

At the end of the course, you'll be challenged to create your own pass map using another player or match.


Who is this course for?

This course is designed for football fans, aspiring analysts, students, coaches, and scouts who want to explore football data through Python.

No previous football analytics experience is required. Basic familiarity with Python can be helpful, but the project is explained step by step.


By the end of this course, you'll have created your own football passing visualization and gained a practical foundation for exploring real football event data with Python.

Who this course is for:

  • Football fans interested in learning how to visualize real match data with Python.
  • Beginners in football analytics who want to build their first passing visualizations.
  • Students and aspiring football analysts looking for a practical, hands-on Python project.
  • Coaches, scouts, and football professionals interested in exploring passing patterns through data.