Skip to content

Latest commit

 

History

History
 
 

football_matches

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Project Overview

In this project, we'll predict the winner of football matches in the English Premier League (EPL).

Project Steps

  • Scrape match data using requests, BeautifulSoup, and pandas.
  • Clean the data and get it ready for machine learning using pandas.
  • Make predictions about who will win a match using scikit-learn.
  • Measure error and improve our predictions.

Code

You can find the code for this project here.

File overview:

  • scraping.ipynb - a Jupyter notebook that scrapes our data.
  • predictions.ipynb - a Jupyter notebook that makes predictions.

Local Setup

Installation

To follow this project, please install the following locally:

  • JupyerLab
  • Python 3.8+
  • Python packages
    • pandas
    • requests
    • BeautifulSoup
    • scikit-learn

Data

We'll be scraping FBref to get our data in the first part of this project (scraping.ipynb).

If you only want to do the second part of the project (predictions.ipynb) you can download matches.csv here.