Export Image
Export Code

Data Transformation for Premier League xG for teams from 21-22 season

Matthew Dzwil

Last edited Jan 30, 2023
Created on Jan 30, 2023

This data comes from: https://understat.com/

Transformation: Filtering down to one team so I can make plot of just their season. Also, getting their max xP and Points in the season.

Variables and their types:

Team (categorical): A Premier League Team

Matchweek (quantitative): Which week in the 38 week season the game occured

xP (quantitative): A probability that corresponds to the expected amount of points a team has accumulated so far in the season

Points (quantitative): The number of points gained in the game so far in the season

xPTable (quantitative): The position in the PL table a team would be based on their xP

MIT Licensed