{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
" "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# FBref Player Stats Data Engineering\n",
"##### Notebook to engineer raw data from [FBref](https://fbref.com/en/) via [StatsBomb](https://statsbomb.com/) \n",
"\n",
"### By [Edd Webster](https://www.twitter.com/eddwebster)\n",
"Notebook first written: 26/12/2020 \n",
"Notebook last updated: 01/08/2021\n",
"\n",
"![title](../../img/fbref-logo-banner.png)\n",
"\n",
"![title](../../img/stats-bomb-logo.png)\n",
"\n",
"Click [here](#section5) to jump straight to the Exploratory Data Analysis section and skip the [Task Brief](#section2), [Data Sources](#section3), and [Data Engineering](#section4) sections. Or click [here](#section6) to jump straight to the Conclusion."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"___\n",
"\n",
" \n",
"\n",
"## Introduction \n",
"This notebook scrapes player statstics data from [FBref](https://fbref.com/en/) via [StatsBomb](https://statsbomb.com/), using [pandas](http://pandas.pydata.org/) for data manipulation through DataFrames, [Beautifulsoup](https://pypi.org/project/beautifulsoup4/) for webscraping.\n",
"\n",
"For more information about this notebook and the author, I am available through all the following channels:\n",
"* [eddwebster.com](https://www.eddwebster.com/);\n",
"* edd.j.webster@gmail.com;\n",
"* [@eddwebster](https://www.twitter.com/eddwebster);\n",
"* [linkedin.com/in/eddwebster](https://www.linkedin.com/in/eddwebster/);\n",
"* [github/eddwebster](https://github.com/eddwebster/);\n",
"* [public.tableau.com/profile/edd.webster](https://public.tableau.com/profile/edd.webster);\n",
"* [kaggle.com/eddwebster](https://www.kaggle.com/eddwebster); and\n",
"* [hackerrank.com/eddwebster](https://www.hackerrank.com/eddwebster).\n",
"\n",
"![title](../../img/fifa21eddwebsterbanner.png)\n",
"\n",
"The accompanying GitHub repository for this notebook can be found [here](https://github.com/eddwebster/football_analytics) and a static version of this notebook can be found [here](https://nbviewer.jupyter.org/github/eddwebster/football_analytics/blob/master/notebooks/A%29%20Web%20Scraping/FBref%20Web%20Scraping%20and%20Parsing.ipynb)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"___\n",
"\n",
" \n",
"\n",
"## Notebook Contents \n",
"1. [Notebook Dependencies](#section1) \n",
"2. [Project Brief](#section2) \n",
"3. [Data Sources](#section3) \n",
" 1. [Introduction](#section3.1) \n",
" 2. [Outfielder Players](#section3.2) \n",
" 1. [Data Dictionary](#section3.2.1) \n",
" 2. [Creating the DataFrame](#section3.2.2) \n",
" 3. [Initial Data Handling](#section3.2.3) \n",
" 4. [Export the Raw DataFrame](#section3.2.4) \n",
" 3. [Goalkeepers](#section3.3) \n",
" 1. [Data Dictionary](#section3.3.1) \n",
" 2. [Creating the DataFrame](#section3.3.2) \n",
" 3. [Initial Data Handling](#section3.3.3) \n",
" 4. [Export the Raw DataFrame](#section3.3.4) \n",
"4. [Data Engineering](#section4) \n",
" 1. [Outfielder Players](#section4.1) \n",
" 2. [Goalkeepers](#section4.2) \n",
" 3. [Outfielder Players and Goalkeepers Combined](#section4.3) \n",
"5. [Summary](#section5) \n",
"6. [Next Steps](#section6) \n",
"7. [References](#section7) "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"___\n",
"\n",
" \n",
"\n",
"## 1. Notebook Dependencies \n",
"\n",
"This notebook was written using [Python 3](https://docs.python.org/3.7/) and requires the following libraries:\n",
"* [`Jupyter notebooks`](https://jupyter.org/) for this notebook environment with which this project is presented;\n",
"* [`NumPy`](http://www.numpy.org/) for multidimensional array computing;\n",
"* [`pandas`](http://pandas.pydata.org/) for data analysis and manipulation; and\n",
"* [`matplotlib`](https://matplotlib.org/contents.html?v=20200411155018) for data visualisations.\n",
"\n",
"All packages used for this notebook except for BeautifulSoup can be obtained by downloading and installing the [Conda](https://anaconda.org/anaconda/conda) distribution, available on all platforms (Windows, Linux and Mac OSX). Step-by-step guides on how to install Anaconda can be found for Windows [here](https://medium.com/@GalarnykMichael/install-python-on-windows-anaconda-c63c7c3d1444) and Mac [here](https://medium.com/@GalarnykMichael/install-python-on-mac-anaconda-ccd9f2014072), as well as in the Anaconda documentation itself [here](https://docs.anaconda.com/anaconda/install/)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Import Libraries and Modules"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Setup Complete\n"
]
}
],
"source": [
"# Python ≥3.5 (ideally)\n",
"import platform\n",
"import sys, getopt\n",
"assert sys.version_info >= (3, 5)\n",
"import csv\n",
"\n",
"# Import Dependencies\n",
"%matplotlib inline\n",
"\n",
"# Math Operations\n",
"import numpy as np\n",
"from math import pi\n",
"\n",
"# Datetime\n",
"import datetime\n",
"from datetime import date\n",
"import time\n",
"\n",
"# Data Preprocessing\n",
"import pandas as pd\n",
"#import pandas_profiling as pp\n",
"import os\n",
"import re\n",
"import random\n",
"from io import BytesIO\n",
"from pathlib import Path\n",
"\n",
"# Reading directories\n",
"import glob\n",
"import os\n",
"\n",
"# Working with JSON\n",
"import json\n",
"from pandas.io.json import json_normalize\n",
"\n",
"# Web Scraping\n",
"import requests\n",
"from bs4 import BeautifulSoup\n",
"import re\n",
"\n",
"# Fuzzy Matching - Record Linkage\n",
"import recordlinkage\n",
"import jellyfish\n",
"import numexpr as ne\n",
"\n",
"# Data Visualisation\n",
"import matplotlib as mpl\n",
"import matplotlib.pyplot as plt\n",
"import seaborn as sns\n",
"plt.style.use('seaborn-whitegrid')\n",
"import missingno as msno\n",
"\n",
"# Progress Bar\n",
"from tqdm import tqdm\n",
"\n",
"# Display in Jupyter\n",
"from IPython.display import Image, YouTubeVideo\n",
"from IPython.core.display import HTML\n",
"\n",
"# Ignore Warnings\n",
"import warnings\n",
"warnings.filterwarnings(action=\"ignore\", message=\"^internal gelsd\")\n",
"\n",
"print('Setup Complete')"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"scrolled": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Python: 3.7.6\n",
"NumPy: 1.20.3\n",
"pandas: 1.3.2\n",
"matplotlib: 3.4.2\n"
]
}
],
"source": [
"# Python / module versions used here for reference\n",
"print('Python: {}'.format(platform.python_version()))\n",
"print('NumPy: {}'.format(np.__version__))\n",
"print('pandas: {}'.format(pd.__version__))\n",
"print('matplotlib: {}'.format(mpl.__version__))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Define Filepaths"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"scrolled": true
},
"outputs": [],
"source": [
"# Set up initial paths to subfolders\n",
"base_dir = os.path.join('..', '..', )\n",
"data_dir = os.path.join(base_dir, 'data')\n",
"data_dir_fbref = os.path.join(base_dir, 'data', 'fbref')\n",
"img_dir = os.path.join(base_dir, 'img')\n",
"fig_dir = os.path.join(base_dir, 'img', 'fig')\n",
"video_dir = os.path.join(base_dir, 'video')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Defined Variables"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"# Defined Bariables\n",
"\n",
"## Define today's date\n",
"today = datetime.datetime.now().strftime('%d/%m/%Y').replace('/', '')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Defined Dictionaries"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"# Defined Dictionaries\n",
"\n",
"## Define league names and their IDs\n",
"dict_league_ids = {'Premier-League': '9',\n",
" 'Ligue-1': '13',\n",
" 'Bundesliga': '20',\n",
" 'Serie-A': '11',\n",
" 'La-Liga': '12',\n",
" 'Major-League-Soccer': '22',\n",
" 'Big-5-European-Leagues': 'Big5'\n",
" }\n",
"\n",
"## Define league names and cleaned league names\n",
"dict_league_names = {'eng Premier League': 'Premier League',\n",
" 'fr Ligue 1': 'Ligue 1',\n",
" 'de Bundesliga': 'Bundeliga',\n",
" 'it Serie A': 'Serie A',\n",
" 'es La Liga': 'La Liga'\n",
" }\n",
"\n",
"## Define positions and their grouped position names\n",
"dict_positions_grouped = {'DF': 'Defender',\n",
" 'DF,FW': 'Defender',\n",
" 'DF,GK': 'Defender',\n",
" 'DF,MF': 'Defender',\n",
" 'FW': 'Forward',\n",
" 'FW,DF': 'Forward',\n",
" 'FW,MF': 'Forward',\n",
" 'GK': 'Goalkeeper',\n",
" 'GK,FW': 'Goalkeeper',\n",
" 'MF': 'Midfielder',\n",
" 'MF,DF': 'Midfielder',\n",
" 'MF,FW': 'Midfielder',\n",
" 'MF,GK': 'Midfielder',\n",
" }"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Defined Lists"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
"# Defined Lists\n",
"\n",
"## Define list of long names for 'Big 5' European Leagues and MLS\n",
"lst_league_names_long = ['Premier-League', 'Ligue-1', 'Bundesliga', 'Serie-A', 'La-Liga', 'Major-League-Soccer', 'Big-5-European-Leagues']\n",
"\n",
"## Define seasons to scrape\n",
"lst_seasons = ['2017-2018', '2018-2019', '2019-2020', '2020-2021', '2021-2022']\n",
"\n",
"## Define list of folders\n",
"lst_folders = ['raw', 'engineered', 'reference']\n",
"\n",
"## Define list of folders\n",
"lst_data_types = ['goalkeeper', 'outfield', 'team']"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Create Directory Structure\n",
"Create folders and subfolders for data, if not already created."
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
"# Make the data directory structure\n",
"for folder in lst_folders:\n",
" path = os.path.join(data_dir_fbref, folder)\n",
" if not os.path.exists(path):\n",
" os.mkdir(path)\n",
" for data_types in lst_data_types:\n",
" path = os.path.join(data_dir_fbref, folder, data_types)\n",
" if not os.path.exists(path):\n",
" os.mkdir(path)\n",
" os.mkdir(os.path.join(path, 'archive'))\n",
" for league in lst_league_names_long:\n",
" path = os.path.join(data_dir_fbref, folder, data_types, league)\n",
" if not os.path.exists(path):\n",
" os.mkdir(path)\n",
" for season in lst_seasons:\n",
" path = os.path.join(data_dir_fbref, folder, data_types, league, season)\n",
" if not os.path.exists(path):\n",
" os.mkdir(path)\n",
" os.mkdir(os.path.join(path, 'archive'))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Notebook Settings"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
"# Display all columns of pandas DataFrames\n",
"pd.set_option('display.max_columns', None)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"---\n",
"\n",
" \n",
"\n",
"## 2. Project Brief \n",
"This Jupyter notebook is part of a series of notebooks to scrape, parse, engineer, unify, and the model, culminating in a an Expected Transfer (xTransfer) player performance vs. valuation model. This model aims to determine the under- and over-performing players based on their on-the-pitch output against transfer fee and wages.\n",
"\n",
"This particular notebook is one of several data engineering notebooks, that takes scraped data from [FBref](https://fbref.com/en/), provided by [StatsBomb](https://statsbomb.com/), and and engineers it using [pandas](http://pandas.pydata.org/) through the manipulation of DataFrames.\n",
"\n",
"This notebook, along with the other notebooks in this project workflow are shown in the following diagram:\n",
"\n",
"![roadmap](../../img/football_analytics_data_roadmap.png)\n",
"\n",
"Links to these notebooks in the [`football_analytics`](https://github.com/eddwebster/football_analytics) GitHub repository can be found at the following:\n",
"* [Webscraping](https://github.com/eddwebster/football_analytics/tree/master/notebooks/1_data_scraping)\n",
" + [FBref Player Stats Webscraping](https://github.com/eddwebster/football_analytics/blob/master/notebooks/1_data_scraping/FBref%20Player%20Stats%20Web%20Scraping.ipynb)\n",
" + [TransferMarket Player Bio and Status Webscraping](https://github.com/eddwebster/football_analytics/blob/master/notebooks/1_data_scraping/TransferMarkt%20Player%20Bio%20and%20Status%20Web%20Scraping.ipynb)\n",
" + [TransferMarket Player Valuation Webscraping](https://github.com/eddwebster/football_analytics/blob/master/notebooks/1_data_scraping/TransferMarkt%20Player%20Valuation%20Web%20Scraping.ipynb)\n",
" + [TransferMarkt Player Recorded Transfer Fees Webscraping](https://github.com/eddwebster/football_analytics/blob/master/notebooks/1_data_scraping/TransferMarkt%20Player%20Recorded%20Transfer%20Fees%20Webscraping.ipynb)\n",
" + [Capology Player Salary Webscraping](https://github.com/eddwebster/football_analytics/blob/master/notebooks/1_data_scraping/Capology%20Player%20Salary%20Web%20Scraping.ipynb)\n",
" + [FBref Team Stats Webscraping](https://github.com/eddwebster/football_analytics/blob/master/notebooks/1_data_scraping/FBref%20Team%20Stats%20Web%20Scraping.ipynb)\n",
"* [Data Parsing](https://github.com/eddwebster/football_analytics/tree/master/notebooks/2_data_parsing)\n",
" + [ELO Team Ratings Data Parsing](https://github.com/eddwebster/football_analytics/blob/master/notebooks/2_data_parsing/ELO%20Team%20Ratings%20Data%20Parsing.ipynb)\n",
"* [Data Engineering](https://github.com/eddwebster/football_analytics/tree/master/notebooks/3_data_engineering)\n",
" + [FBref Player Stats Data Engineering](https://github.com/eddwebster/football_analytics/blob/master/notebooks/3_data_engineering/FBref%20Player%20Stats%20Data%20Engineering.ipynb)\n",
" + [TransferMarket Player Bio and Status Data Engineering](https://github.com/eddwebster/football_analytics/blob/master/notebooks/3_data_engineering/TransferMarkt%20Player%20Bio%20and%20Status%20Data%20Engineering.ipynb)\n",
" + [TransferMarket Player Valuation Data Engineering](https://github.com/eddwebster/football_analytics/blob/master/notebooks/3_data_engineering/TransferMarkt%20Player%20Valuation%20Data%20Engineering.ipynb)\n",
" + [TransferMarkt Player Recorded Transfer Fees Data Engineering](https://github.com/eddwebster/football_analytics/blob/master/notebooks/3_data_engineering/TransferMarkt%20Player%20Recorded%20Transfer%20Fees%20Data%20Engineering.ipynb)\n",
" + [Capology Player Salary Data Engineering](https://github.com/eddwebster/football_analytics/blob/master/notebooks/3_data_engineering/Capology%20Player%20Salary%20Data%20Engineering.ipynb)\n",
" + [FBref Team Stats Data Engineering](https://github.com/eddwebster/football_analytics/blob/master/notebooks/3_data_engineering/FBref%20Team%20Stats%20Data%20Engineering.ipynb)\n",
" + [ELO Team Ratings Data Parsing](https://github.com/eddwebster/football_analytics/blob/master/notebooks/3_data_engineering/ELO%20Team%20Ratings%20Data%20Parsing.ipynb)\n",
" + [TransferMarkt Team Recorded Transfer Fee Data Engineering](https://github.com/eddwebster/football_analytics/blob/master/notebooks/3_data_engineering/TransferMarkt%20Team%20Recorded%20Transfer%20Fee%20Data%20Engineering.ipynb) (aggregated from [TransferMarkt Player Recorded Transfer Fees notebook](https://github.com/eddwebster/football_analytics/blob/master/notebooks/3_data_engineering/TransferMarkt%20Player%20Recorded%20Transfer%20Fees%20Data%20Engineering.ipynb))\n",
" + [Capology Team Salary Data Engineering](https://github.com/eddwebster/football_analytics/blob/master/notebooks/3_data_engineering/Capology%20Team%20Salary%20Data%20Engineering.ipynb) (aggregated from [Capology Player Salary notebook](https://github.com/eddwebster/football_analytics/blob/master/notebooks/3_data_engineering/Capology%20Player%20Salary%20Data%20Engineering.ipynb))\n",
"* [Data Unification](https://github.com/eddwebster/football_analytics/tree/master/notebooks/4_data_unification)\n",
" + [Golden ID for Player Level Datasets](https://github.com/eddwebster/football_analytics/blob/master/notebooks/4_data_unification/Golden%20ID%20for%20Player%20Level%20Datasets.ipynb)\n",
" + [Golden ID for Team Level Datasets](https://github.com/eddwebster/football_analytics/blob/master/notebooks/4_data_unification/Golden%20ID%20for%20Team%20Level%20Datasets.ipynb)\n",
"* [Production Datasets](https://github.com/eddwebster/football_analytics/tree/master/notebooks/5_production_datasets)\n",
" + [Player Performance/Market Value Dataset](https://github.com/eddwebster/football_analytics/tree/master/notebooks/5_production_datasets/Player%20Performance/Market%20Value%20Dataset.ipynb)\n",
" + [Team Performance/Market Value Dataset](https://github.com/eddwebster/football_analytics/tree/master/notebooks/5_production_datasets/Team%20Performance/Market%20Value%20Dataset.ipynb)\n",
"* [Expected Transfer (xTransfer) Modeling](https://github.com/eddwebster/football_analytics/tree/master/notebooks/6_data_analysis_and_projects/expected_transfer_modeling)\n",
" + [Expected Transfer (xTransfer) Modeling](https://github.com/eddwebster/football_analytics/tree/master/notebooks/6_data_analysis_and_projects/expected_transfer_modeling/Expected%20Transfer%20%20Modeling.ipynb)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"---\n",
"\n",
" \n",
"\n",
"## 3. Data Sources "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"### 3.1. Introduction \n",
"This player data to be engineered in this notebook was done separately for outfielders and goalkeepers. This Data Sources subsection is split into two sections for each of these data sets.\n",
"\n",
"We'll be using the [pandas](http://pandas.pydata.org/) library to import our data to this workbook as a DataFrame."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"### 3.2. Outfield Players "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"#### 3.2.1. Data Dictionary \n",
"The raw dataset has one hundred and X features (columns) with the following definitions and data types:\n",
"\n",
"The raw dataset has one hundred and ninety two features (columns) with the following definitions and data types:\n",
"\n",
"\n",
"| Variable | Data Type | Description | Stats Type |\n",
"|------|-----|-----|-----|\n",
"| `Player` | object | **Player Name** | Standard Stats |\n",
"| `Nation` | float64 | **Nationality of the player.** | Standard Stats |\n",
"| `Pos` | float64 | **Position** | Standard Stats |\n",
"| `Squad` | float64 | | Standard Stats |\n",
"| `Comp` | float64 | | Standard Stats |\n",
"| `Age` | float64 | **Current Age** | Standard Stats |\n",
"| `Born` | float64 | **Year of Birth** | Standard Stats |\n",
"| `MP` | float64 | **Matched Played** | Standard Stats |\n",
"| `Starts` | float64 | **Games Started** | Standard Stats |\n",
"| `Min` | float64 | **Minutes** | Standard Stats |\n",
"| `90s` | float64 | **90s Played**. Minutes played divided by 90. | Standard Stats |\n",
"| `Gls` | float64 | **Goals**. Goals scored or allowed | Standard Stats |\n",
"| `Ast` | float64 | **Assists** | Standard Stats |\n",
"| `G-PK` | float64 | **Non-Penalty Goals** | Standard Stats |\n",
"| `PK` | float64 | **Penalty Kicks Made** | Standard Stats |\n",
"| `PKatt` | float64 | **Penalty Kicks Attempted** | Standard Stats |\n",
"| `CrdY` | float64 | **Yellow Cards** | Standard Stats |\n",
"| `CrdR` | float64 | **Red Cards** | Standard Stats |\n",
"| `G+A` | float64 | **Goals Scored per 90 minutes**. Minimum 30 minutes played per squad game to qualify as a leader | Standard Stats |\n",
"| `G+A-PK` | float64 | **Goals plus Assists minus Penalty Kicks made per 90 minutes**. Minimum 30 minutes played per squad game to qualify as a leader | Standard Stats |\n",
"| `xG` | float64 | **Expected Goals**. xG totals include penalty kicks, but do not include penalty shootouts. | Standard Stats |\n",
"| `npxG` | float64 | **Non-Penalty Expected Goals per 90 minutes**. Minimum 30 minutes played per squad game to qualify as a leader | Standard Stats |\n",
"| `xA` | float64 | **xG Assisted**. xG which follows a pass that assists a shot. | Standard Stats |\n",
"| `npxG+xA` | float64 | **Non-Penalty Expected Goals plus xG Assisted per 90 minutes**. Minimum 30 minutes played per squad game to qualify as a leader | Standard Stats |\n",
"| `xG+xA` | float64 | **Expected Goals plus Assist per 90 minutes**. xG totals include penalty kicks, but do not include penalty shootouts (unless otherwise noted). Minimum 30 minutes played per squad game to qualify as a leader | Standard Stats |\n",
"| `Sh` | float64 | **Shots Total**. Does not include penalty kicks. | Shooting Stats |\n",
"| `SoT` | float64 | **Shots on target**. Note: Shots on target do not include penalty kicks. | Shooting Stats |\n",
"| `SoT%` | float64 | **Shots on target percentage**. Percentage of shots that are on target. Minimum .395 shots per squad game to qualify as a leader. Note: Shots on target do not include penalty kicks | Shooting Stats |\n",
"| `Sh/90` | float64 | **Shots total per 90 minutes**. Minimum 30 minutes played per squad game to qualify as a leader | Shooting Stats |\n",
"| `SoT/90` | float64 | **Shots on target per 90 minutes**. Minimum 30 minutes played per squad game to qualify as a leader. Note: Shots on target do not include penalty kicks | Shooting Stats |\n",
"| `G/Sh` | float64 | **Goals per shot**. Minimum .395 shots per squad game to qualify as a leader. | Shooting Stats |\n",
"| `G/SoT` | float64 | **Goals per shot on target**. Minimum .111 shots on target per squad game to qualify as a leader. Note: Shots on target do not include penalty kicks. | Shooting Stats |\n",
"| `Dist` | float64 | **Average distance, in yards, from goal of all shots taken**. Minimum .395 shots per squad game to qualify as a leader. Does not include penalty kicks. | Shooting Stats |\n",
"| `FK` | float64 | **Shots from free kicks**. | Shooting Stats |\n",
"| `npxG/Sh` | float64 | **Non-Penalty Expected Goals per shot**. Minimum .395 shots per squad game to qualify as a leader. | Shooting Stats |\n",
"| `G-xG` | float64 | **Goals minus Expected Goals**. xG totals include penalty kicks, but do not include penalty shootouts (unless otherwise noted). | Shooting Stats |\n",
"| `np:G-xG` | float64 | **Non-Penalty Goals minus Non-Penalty Expected Goals**. xG totals include penalty kicks, but do not include penalty shootouts (unless otherwise noted). | Shooting Stats |\n",
"| `Cmp` | float64 | **Passes Completed**. | Passing Stats |\n",
"| `Att` | float64 | **Passes Attempted**. | Passing Stats |\n",
"| `Cmp%` | float64 | **Pass Completion Percentage**. Minimum 30 minutes played per squad game to qualify as a leader | Passing Stats |\n",
"| `TotDist` | float64 | **Total distance, in yards, that completed passes have traveled in any direction**. | Passing Stats |\n",
"| `PrgDist` | float64 | **Progressive Distance**. Total distance, in yards, that completed passes have traveled towards the opponent's goal. Note: Passes away from opponent's goal are counted as zero progressive yards. | Passing Stats |\n",
"| `A-xA` | float64 | **Assists minus xG Assisted**. | Passing Stats |\n",
"| `KP` | float64 | **Passes that directly lead to a shot (assisted shots)**. | Passing Stats |\n",
"| `1/3` | float64 | **Completed passes that enter the 1/3 of the pitch closest to the goal**. Not including set pieces. | Passing Stats |\n",
"| `PPA` | float64 | **Completed passes into the 18-yard box**. Not including set pieces. | Passing Stats |\n",
"| `CrsPA` | float64 | **Completed crosses into the 18-yard box**. Not including set pieces. | Passing Stats |\n",
"| `Prod` | float64 | **Progressive Passes**. Completed passes that move the ball towards the opponent's goal at least 10 yards from its furthest point in the last six passes, or any completed pass into the penalty area. Excludes passes from the defending 40% of the pitch | Passing Stats |\n",
"| `Live` | float64 | **Live-ball passes**. | Pass Type Stats |\n",
"| `Dead` | float64 | **Dead-ball passes**. Includes free kicks, corner kicks, kick offs, throw-ins and goal kicks. | Pass Type Stats |\n",
"| `TB` | float64 | **Completed pass sent between back defenders into open space**. | Pass Type Stats |\n",
"| `Press` | float64 | **Passes made while under pressure from opponent**. | Pass Type Stats |\n",
"| `Sw` | float64 | **Passes that travel more than 40 yards of the width of the pitch**. | Pass Type Stats |\n",
"| `Crs` | float64 | **Crosses**. | Pass Type Stats |\n",
"| `CK` | float64 | **Corner Kicks**. | Pass Type Stats |\n",
"| `In` | float64 | **Inswinging Corner Kicks**. | Pass Type Stats |\n",
"| `Out` | float64 | **Outswinging Corner Kicks**. | Pass Type Stats |\n",
"| `Str` | float64 | **Straight Corner Kicks**. | Pass Type Stats |\n",
"| `Groud` | float64 | **Ground passes**. | Pass Type Stats |\n",
"| `Low` | float64 | **Passes that leave the ground, but stay below shoulder-level**. | Pass Type Stats |\n",
"| `High` | float64 | **Passes that are above shoulder-level at the peak height**. | Pass Type Stats |\n",
"| `Left` | float64 | **Passes attempted using left foot**. | Pass Type Stats |\n",
"| `Right` | float64 | **Passes attempted using right foot**. | Pass Type Stats |\n",
"| `Head` | float64 | **Passes attempted using head**. | Pass Type Stats |\n",
"| `TI` | float64 | **Throw-Ins taken**. | Pass Type Stats |\n",
"| `Other` | float64 | **Passes attempted using body parts other than the player's head or feet.** | Passing Stats |\n",
"| `Off` | float64 | **Offsides**. | Passing Stats |\n",
"| `Int` | float64 | **Intercepted**. | Passing Stats |\n",
"| `Blocks` | float64 | **Blocked by the opponent who was standing it the path**. | Passing Stats |\n",
"| `SCA` | float64 | **Shot-Creating Actions**. The two offensive actions directly leading to a shot, such as passes, dribbles and drawing fouls. Note: A single player can receive credit for multiple actions and the shot-taker can also receive credit. | Goal and Shot Creation Stats |\n",
"| `SCA90` | float64 | **Shot-Creating Actions per 90 minutes**. Minimum 30 minutes played per squad game to qualify as a leader | Goal and Shot Creation Stats |\n",
"| `PassLive` | float64 | **Completed live-ball passes that lead to a shot attempt**. | Goal and Shot Creation Stats |\n",
"| `PassDead` | float64 | **Completed dead-ball passes that lead to a shot attempt**. Includes free kicks, corner kicks, kick offs, throw-ins and goal kicks. | Goal and Shot Creation Stats |\n",
"| `Drib` | float64 | **Successful dribbles that lead to a shot attempt**. | Goal and Shot Creation Stats |\n",
"| `Fld` | float64 | **Fouls drawn that lead to a shot attempt**. | Goal and Shot Creation Stats |\n",
"| `Def` | float64 | **Defensive actions that lead to a shot attempt**. | Goal and Shot Creation Stats |\n",
"| `GCA` | float64 | **Goal-Creating Actions**. The two offensive actions directly leading to a goal, such as passes, dribbles and drawing fouls. Note: A single player can receive credit for multiple actions and the shot-taker can also receive credit. | Goal and Shot Creation Stats |\n",
"| `GCA90` | float64 | **Goal-Creating Actions per 90 minutes**. Minimum 30 minutes played per squad game to qualify as a leader. | Goal and Shot Creation Stats |\n",
"| `Tkl` | float64 | **Number of players tackled**. | Defensive Action Stats |\n",
"| `TklW` | float64 | **Tackles in which the tackler's team won possession of the ball**. | Defensive Action Stats |\n",
"| `Def 3rd` | float64 | **Tackles in defensive 1/3**. | Defensive Action Stats |\n",
"| `Mid 3rd` | float64 | **Tackles in middle 1/3**. | Defensive Action Stats |\n",
"| `Att 3rd` | float64 | **Tackles in attacking 1/3**. | Defensive Action Stats |\n",
"| `Tkl%` | float64 | **Percentage of dribblers tackled**. Dribblers tackled divided by dribblers tackled plus times dribbled past. Minimum .625 dribblers contested per squad game to qualify as a leader. | Defensive Action Stats |\n",
"| `Past` | float64 | **Number of times dribbled past by an opposing player**. | Defensive Action Stats |\n",
"| `Succ` | float64 | **Number of times the squad gained possession withing five seconds of applying pressure**. | Defensive Action Stats |\n",
"| `%` | float64 | **Successful Pressure Percentage**. Percentage of time the squad gained possession withing five seconds of applying pressure. Minimum 6.44 pressures per squad game to qualify as a leader | Defensive Action Stats |\n",
"| `ShSv` | float64 | **Number of times blocking a shot that was on target, by standing in its path**. | Defensive Action Stats |\n",
"| `Pass` | float64 | **Number of times blocking a pass by standing in its path**. | Defensive Action Stats |\n",
"| `Tkl+Int` | float64 | **Number of players tackled plus number of interceptions**. | Defensive Action Stats |\n",
"| `Clr` | float64 | **Clearances**. | Defensive Action Stats |\n",
"| `Err` | float64 | **Mistakes leading to an opponent's shot**. | Defensive Action Stats |\n",
"| `Touches` | float64 | **Number of times a player touched the ball**. Note: Receiving a pass, then dribbling, then sending a pass counts as one touch. | Possession Stats |\n",
"| `Def Pen` | float64 | **Touches in defensive penalty area**. | Possession Stats |\n",
"| `Att Pen` | float64 | **Touches in attacking penalty area**. | Possession Stats |\n",
"| `Succ%` | float64 | **Percentage of Dribbles Completed Successfully**. Minimum .5 dribbles per squad game to qualify as a leader | Possession Stats |\n",
"| `#Pl` | float64 | **Number of Players Dribbled Past**. | Possession Stats |\n",
"| `Megs` | float64 | **Number of times a player dribbled the ball through an opposing player's legs**. | Possession Stats |\n",
"| `Carries` | float64 | **Number of times the player controlled the ball with their feet**. | Possession Stats |\n",
"| `CPA` | float64 | **Carries into the 18-yard box**. | Possession Stats |\n",
"| `Mis` | float64 | **Number of times a player failed when attempting to gain control of a ball**. | Possession Stats |\n",
"| `Dis` | float64 | **Number of times a player loses control of the ball after being tackled by an opposing player**. Does not include attempted dribbles. | Possession Stats |\n",
"| `Targ` | float64 | **Number of times a player was the target of an attempted pass**. | Possession Stats |\n",
"| `Rec` | float64 | **Number of times a player successfully received a pass**. | Possession Stats |\n",
"| `Rec%` | float64 | **Passes Received Percentage**. Percentage of time a player successfully received a pass. Minimum 30 minutes played per squad game to qualify as a leader. | Possession Stats |\n",
"| `Mn/MP` | float64 | **Minutes Per Match Played**. | Playing Time Stats |\n",
"| `Min%` | float64 | **Percentage of Minutes Played**. Percentage of team's total minutes in which player was on the pitch. Player minutes played divided by team total minutes played. Minimum 30 minutes played per squad game to qualify as a leader. | Playing Time Stats |\n",
"| `Mn/Start` | float64 | **Minutes Per Match Started**. Minimum 30 minutes played per squad game to qualify as a leader. | Playing Time Stats |\n",
"| `Subs` | float64 | **Games as sub**. Game or games player did not start, so as a substitute. | Playing Time Stats |\n",
"| `Mn/Sub` | float64 | **Minutes Per Substitution**. Minimum 30 minutes played per squad game to qualify as a leader. | Playing Time Stats |\n",
"| `unSub` | float64 | **Games as an unused substitute**. | Playing Time Stats |\n",
"| `PPM` | float64 | **Points per Match**. Average number of points earned by the team from matches in which the player appeared. Minimum 30 minutes played per squad game to qualify as a leader. | Playing Time Stats |\n",
"| `onG` | float64 | **Goals scored by team while on pitch**. | Playing Time Stats |\n",
"| `onGA` | float64 | **Goals allowed by team while on pitch**. | Playing Time Stats |\n",
"| `+/-` | float64 | **Plus/Minus**. Goals scored minus goals allowed by the team while the player was on the pitch. | Playing Time Stats |\n",
"| `+/-90` | float64 | **Plus/Minus per 90 Minutes**. Goals scored minus goals allowed by the team while the player was on the pitch per 90 minutes played. Minimum 30 minutes played per squad game to qualify as a leader. | Playing Time Stats |\n",
"| `On-Off` | float64 | **Plus/Minus Net per 90 Minutes**. Net goals per 90 minutes by the team while the player was on the pitch minus net goals allowed per 90 minutes by the team while the player was off the pitch. Minimum 30 minutes played per squad game to qualify as a leader. | Playing Time Stats |\n",
"| `onxG` | float64 | **Expected goals by team while on pitch**. xG totals include penalty kicks, but do not include penalty shootouts (unless otherwise noted). | Playing Time Stats |\n",
"| `onxGA` | float64 | **Expected goals allowed by team while on pitch**. xG totals include penalty kicks, but do not include penalty shootouts (unless otherwise noted). | Playing Time Stats |\n",
"| `xG+/-` | float64 | **xG Plus/Minus**. Expected goals scored minus expected goals allowed by the team while the player was on the pitch. xG totals include penalty kicks, but do not include penalty shootouts (unless otherwise noted). | Playing Time Stats |\n",
"| `xG+/-90` | float64 | **xG Plus/Minus per 90 Minutes**. Expected goals scored minus expected goals allowed by the team while the player was on the pitch per 90 minutes played. xG totals include penalty kicks, but do not include penalty shootouts (unless otherwise noted). | Playing Time Stats |\n",
"| `2CrdY` | float64 | **Second Yellow Card**. | Miscellaneous Stats |\n",
"| `Fls` | float64 | **Fouls Committed**. | Miscellaneous Stats |\n",
"| `PKwon` | float64 | **Penalty Kicks Won**. | Miscellaneous Stats |\n",
"| `PKcon` | float64 | **Penalty Kicks Conceded**. | Miscellaneous Stats |\n",
"| `OG` | float64 | **Own Goals**. | Miscellaneous Stats |\n",
"| `Recov` | float64 | **Number of loose balls recovered**. | Miscellaneous Stats |\n",
"| `Won` | float64 | **Aerials won**. | Miscellaneous Stats |\n",
"| `Lost` | float64 | **Aerials lost**. | Miscellaneous Stats |\n",
"| `Won%` | float64 | **Percentage of aerials won**. Minimum .97 aerial duels per squad game to qualify as a leader. | Miscellaneous Stats |\n",
"| `League Name` | object | **Competition Name** | |\n",
"| `League ID` | object | **Competition ID**, as per FBref. | |\n",
"| `Season` | object | **Season**. | |\n",
"| `Team Name` | object | **Club name**. | |\n",
"| `Team Country` | object | **Country of the team/league**. | |\n",
"| `Nationality Code` | object | **3 digit nationality code** | |\n",
"| `Nationality Cleaned` | object | **Tidied nationality** | |\n",
"| `Primary Pos` | object | **Primary position of the player**. | |\n",
"| `Position Grouped` | object | **Primary position grouped** - Goalkeeper, Defender, Midfielder, Forward. | |\n",
"| `Outfielder Goalkeeper` | object | **Playering position is in goal or outfield**. | |\n",
"| `GA` | float64 | **Goals Against**. | Goalkeeping Stats |\n",
"| `GA90` | float64 | **Goals Against per 90 minutes**. | Goalkeeping Stats |\n",
"| `SoTA` | float64 | **Shots on Target Against**. | Goalkeeping Stats |\n",
"| `Saves` | float64 | | Goalkeeping Stats |\n",
"| `Save%` | float64 | **Save Percentage (Shots on Target Against - Goals Against)/Shots on Target Against**. Note that not all shots on target are stopped by the keeper, many will be stopped by defenders. | Goalkeeping Stats |\n",
"| `W` | float64 | **Wins**. | Goalkeeping Stats |\n",
"| `D` | float64 | **Draws**. | Goalkeeping Stats |\n",
"| `L` | float64 | **Losses**. | Goalkeeping Stats |\n",
"| `CS` | float64 | **Clean Sheets**. Full matches by goalkeeper where no goals are allowed. | Goalkeeping Stats |\n",
"| `CS%` | float64 | **Clean Sheet Percentage**. Percentage of matches that result in clean sheets. | Goalkeeping Stats |\n",
"| `PKA` | float64 | **Penalty Kicks Allowed** | Goalkeeping Stats |\n",
"| `PKsv` | float64 | **Penalty Kicks Saved**. | Goalkeeping Stats |\n",
"| `PKm` | float64 | **Penalty Kicks Missed**. | Goalkeeping Stats |\n",
"| `PSxG` | float64 | **Post-Shot Expected Goals**. PSxG is expected goals based on how likely the goalkeeper is to save the shot xG totals include penalty kicks, but do not include penalty shootouts (unless otherwise noted). | Advanced Goalkeeping Stats |\n",
"| `PSxG/SoT` | float64 | **Post-Shot Expected Goals per Shot on Target**. Not including penalty kicks. PSxG is expected goals based on how likely the goalkeeper is to save the shot. Higher numbers indicate that shots on target faced are more difficult to stop and more likely to score. | Advanced Goalkeeping Stats |\n",
"| `PSxG+/-` | float64 | **Post-Shot Expected Goals minus Goals Allowed**. Positive numbers suggest better luck or an above average ability to stop shots. PSxG is expected goals based on how likely the goalkeeper is to save the shot. Note: Does not include own goals. xG totals include penalty kicks, but do not include penalty shootouts (unless otherwise noted). | Advanced Goalkeeping Stats |\n",
"| `/90` | float64 | **Post-Shot Expected Goals minus Goals Allowed per 90 minutes**. Positive numbers suggest better luck or an above average ability to stop shots. PSxG is expected goals based on how likely the goalkeeper is to save the shot. Note: Does not include own goals. xG totals include penalty kicks, but do not include penalty shootouts (unless otherwise noted). | Advanced Goalkeeping Stats |\n",
"| `Thr` | float64 | **Throws Attempted**. | Advanced Goalkeeping Stats |\n",
"| `Launch%` | float64 | **Percentage of Passes that were Launched**. Not including goal kicks. Passes longer than 40 yards | Advanced Goalkeeping Stats |\n",
"| `AvgLen` | float64 | **Average length of passes, in yards**. Not including goal kicks | Advanced Goalkeeping Stats |\n",
"| `Opp` | float64 | **Opponent's attempted crosses into penalty area** | Advanced Goalkeeping Stats |\n",
"| `Stp` | float64 | **Number of crosses into penalty area which were successfully stopped by the goalkeeper** | Advanced Goalkeeping Stats |\n",
"| `Stp%` | float64 | **Percentage of crosses into penalty area which were successfully stopped by the goalkeeper** | Advanced Goalkeeping Stats |\n",
"| `#OPA` | float64 | **# of defensive actions outside of penalty area** | Advanced Goalkeeping Stats |\n",
"| `#OPA/90` | float64 | **Defensive actions outside of penalty area per 90 minutes** | Advanced Goalkeeping Stats |\n",
"| `AvgDist` | float64 | **Average distance from goal (in yards) of all defensive actions** | Advanced Goalkeeping Stats |\n",
"\n",
"\n",
" \n",
"\n",
"The features will be cleaned, converted and also additional features will be created in the [Data Engineering](#section4) section (Section 4)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"#### 3.2.2. Import CSV files as pandas DataFrames "
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/opt/anaconda3/lib/python3.7/site-packages/IPython/core/interactiveshell.py:3441: DtypeWarning: Columns (5) have mixed types.Specify dtype option on import or set low_memory=False.\n",
" exec(code_obj, self.user_global_ns, self.user_ns)\n"
]
}
],
"source": [
"# Import DataFrame as a CSV file\n",
"df_fbref_outfield_raw = pd.read_csv(data_dir_fbref + '/raw/outfield/fbref_outfield_player_stats_combined_latest.csv')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"#### 3.2.3. Preliminary Data Handling "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"##### 3.2.3.1. Summary Report \n",
"Initial step of the data handling and Exploratory Data Analysis (EDA) is to create a quick summary report of the dataset using [pandas Profiling Report](https://github.com/pandas-profiling/pandas-profiling)."
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
"# Summary of the data using pandas Profiling Report\n",
"#pp.ProfileReport(df_fbref_outfield_raw)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"##### 3.2.3.2. Further Inspection \n",
"The following commands go into more bespoke summary of the dataset. Some of the commands include content covered in the [pandas Profiling](https://github.com/pandas-profiling/pandas-profiling) summary above, but using the standard [pandas](https://pandas.pydata.org/) functions and methods that most peoplem will be more familiar with.\n",
"\n",
"First check the quality of the dataset by looking first and last rows in pandas using the [head()](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.head.html) and [tail()](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.tail.html) methods."
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"
\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" Player \n",
" Nation \n",
" Pos \n",
" Squad \n",
" Comp \n",
" Age \n",
" Born \n",
" MP \n",
" Starts \n",
" Min \n",
" 90s \n",
" Gls \n",
" Ast \n",
" G-PK \n",
" PK \n",
" PKatt \n",
" CrdY \n",
" CrdR \n",
" Gls.1 \n",
" Ast.1 \n",
" G+A \n",
" G-PK.1 \n",
" G+A-PK \n",
" xG \n",
" npxG \n",
" xA \n",
" npxG+xA \n",
" xG.1 \n",
" xA.1 \n",
" xG+xA \n",
" npxG.1 \n",
" npxG+xA.1 \n",
" Matches \n",
" Sh \n",
" SoT \n",
" SoT% \n",
" Sh/90 \n",
" SoT/90 \n",
" G/Sh \n",
" G/SoT \n",
" Dist \n",
" FK \n",
" npxG/Sh \n",
" G-xG \n",
" np:G-xG \n",
" Cmp \n",
" Att \n",
" Cmp% \n",
" TotDist \n",
" PrgDist \n",
" Cmp.1 \n",
" Att.1 \n",
" Cmp%.1 \n",
" Cmp.2 \n",
" Att.2 \n",
" Cmp%.2 \n",
" Cmp.3 \n",
" Att.3 \n",
" Cmp%.3 \n",
" A-xA \n",
" KP \n",
" 1/3 \n",
" PPA \n",
" CrsPA \n",
" Prog \n",
" Live \n",
" Dead \n",
" TB \n",
" Press \n",
" Sw \n",
" Crs \n",
" CK \n",
" In \n",
" Out \n",
" Str \n",
" Ground \n",
" Low \n",
" High \n",
" Left \n",
" Right \n",
" Head \n",
" TI \n",
" Other \n",
" Off \n",
" Out.1 \n",
" Int \n",
" Blocks \n",
" SCA \n",
" SCA90 \n",
" PassLive \n",
" PassDead \n",
" Drib \n",
" Fld \n",
" Def \n",
" GCA \n",
" GCA90 \n",
" PassLive.1 \n",
" PassDead.1 \n",
" Drib.1 \n",
" Sh.1 \n",
" Fld.1 \n",
" Def.1 \n",
" Tkl \n",
" TklW \n",
" Def 3rd \n",
" Mid 3rd \n",
" Att 3rd \n",
" Tkl.1 \n",
" Tkl% \n",
" Past \n",
" Succ \n",
" % \n",
" Def 3rd.1 \n",
" Mid 3rd.1 \n",
" Att 3rd.1 \n",
" ShSv \n",
" Pass \n",
" Tkl+Int \n",
" Clr \n",
" Err \n",
" Touches \n",
" Def Pen \n",
" Att Pen \n",
" Succ% \n",
" #Pl \n",
" Megs \n",
" Carries \n",
" CPA \n",
" Mis \n",
" Dis \n",
" Targ \n",
" Rec \n",
" Rec% \n",
" Prog.1 \n",
" Mn/MP \n",
" Min% \n",
" Mn/Start \n",
" Compl \n",
" Subs \n",
" Mn/Sub \n",
" unSub \n",
" PPM \n",
" onG \n",
" onGA \n",
" +/- \n",
" +/-90 \n",
" On-Off \n",
" onxG \n",
" onxGA \n",
" xG+/- \n",
" xG+/-90 \n",
" On-Off.1 \n",
" 2CrdY \n",
" Fls \n",
" PKwon \n",
" PKcon \n",
" OG \n",
" Recov \n",
" Won \n",
" Lost \n",
" Won% \n",
" League Name \n",
" League ID \n",
" Season \n",
" \n",
" \n",
" \n",
" \n",
" 0 \n",
" Aaron Cresswell \n",
" eng ENG \n",
" DF \n",
" West Ham \n",
" eng Premier League \n",
" 27 \n",
" 1989.0 \n",
" 36 \n",
" 35 \n",
" 3069 \n",
" 34.1 \n",
" 1 \n",
" 3 \n",
" 1 \n",
" 0 \n",
" 0 \n",
" 7 \n",
" 0 \n",
" 0.03 \n",
" 0.09 \n",
" 0.12 \n",
" 0.03 \n",
" 0.12 \n",
" 0.8 \n",
" 0.8 \n",
" 2.8 \n",
" 3.6 \n",
" 0.02 \n",
" 0.08 \n",
" 0.10 \n",
" 0.02 \n",
" 0.10 \n",
" Matches \n",
" 21.0 \n",
" 6 \n",
" 28.6 \n",
" 0.62 \n",
" 0.18 \n",
" 0.05 \n",
" 0.17 \n",
" 28.1 \n",
" 8.0 \n",
" 0.04 \n",
" 0.2 \n",
" 0.2 \n",
" 1224.0 \n",
" 1708.0 \n",
" 71.7 \n",
" 23519.0 \n",
" 10212.0 \n",
" 560.0 \n",
" 623.0 \n",
" 89.9 \n",
" 472.0 \n",
" 587.0 \n",
" 80.4 \n",
" 183.0 \n",
" 449.0 \n",
" 40.8 \n",
" 0.2 \n",
" 35.0 \n",
" 117.0 \n",
" 21.0 \n",
" 14.0 \n",
" 96.0 \n",
" 1343.0 \n",
" 365.0 \n",
" 1.0 \n",
" 222.0 \n",
" 83.0 \n",
" 93.0 \n",
" 67.0 \n",
" 35.0 \n",
" 15.0 \n",
" 9.0 \n",
" 893.0 \n",
" 293.0 \n",
" 522.0 \n",
" 1329.0 \n",
" 78.0 \n",
" 59.0 \n",
" 210.0 \n",
" 5.0 \n",
" 15.0 \n",
" 44.0 \n",
" 39.0 \n",
" 52.0 \n",
" 62.0 \n",
" 1.82 \n",
" 35.0 \n",
" 21.0 \n",
" 1.0 \n",
" 3.0 \n",
" 0.0 \n",
" 9.0 \n",
" 0.26 \n",
" 6.0 \n",
" 3.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 38.0 \n",
" 18.0 \n",
" 15.0 \n",
" 18.0 \n",
" 5.0 \n",
" 17.0 \n",
" 53.1 \n",
" 15.0 \n",
" 115.0 \n",
" 32.1 \n",
" 181.0 \n",
" 123.0 \n",
" 54.0 \n",
" 0.0 \n",
" 38.0 \n",
" 90.0 \n",
" 133.0 \n",
" 0.0 \n",
" 2050.0 \n",
" 125.0 \n",
" 17.0 \n",
" 33.3 \n",
" 7.0 \n",
" 0.0 \n",
" 1071.0 \n",
" 2.0 \n",
" 18.0 \n",
" 19.0 \n",
" 1171.0 \n",
" 1094.0 \n",
" 93.4 \n",
" 31.0 \n",
" 85 \n",
" 89.7 \n",
" NaN \n",
" 30.0 \n",
" 1 \n",
" NaN \n",
" 1 \n",
" 1.14 \n",
" 45.0 \n",
" 60.0 \n",
" -15.0 \n",
" -0.44 \n",
" 0.84 \n",
" 38.0 \n",
" 51.5 \n",
" -13.5 \n",
" -0.40 \n",
" 1.09 \n",
" 0.0 \n",
" 20 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 277.0 \n",
" 70.0 \n",
" 57.0 \n",
" 55.1 \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2017-2018 \n",
" \n",
" \n",
" 1 \n",
" Aaron Hunt \n",
" de GER \n",
" MF,FW \n",
" Hamburger SV \n",
" de Bundesliga \n",
" 30 \n",
" 1986.0 \n",
" 28 \n",
" 26 \n",
" 2081 \n",
" 23.1 \n",
" 3 \n",
" 2 \n",
" 2 \n",
" 1 \n",
" 1 \n",
" 1 \n",
" 0 \n",
" 0.13 \n",
" 0.09 \n",
" 0.22 \n",
" 0.09 \n",
" 0.17 \n",
" 2.8 \n",
" 2.1 \n",
" 5.6 \n",
" 7.6 \n",
" 0.12 \n",
" 0.23 \n",
" 0.35 \n",
" 0.09 \n",
" 0.32 \n",
" Matches \n",
" 27.0 \n",
" 6 \n",
" 22.2 \n",
" 1.17 \n",
" 0.26 \n",
" 0.07 \n",
" 0.33 \n",
" 23.4 \n",
" 10.0 \n",
" 0.08 \n",
" 0.2 \n",
" -0.1 \n",
" 883.0 \n",
" 1229.0 \n",
" 71.8 \n",
" 16889.0 \n",
" 5315.0 \n",
" 406.0 \n",
" 480.0 \n",
" 84.6 \n",
" 292.0 \n",
" 376.0 \n",
" 77.7 \n",
" 165.0 \n",
" 303.0 \n",
" 54.5 \n",
" -3.6 \n",
" 65.0 \n",
" 83.0 \n",
" 31.0 \n",
" 5.0 \n",
" 97.0 \n",
" 977.0 \n",
" 252.0 \n",
" 11.0 \n",
" 245.0 \n",
" 67.0 \n",
" 66.0 \n",
" 123.0 \n",
" 35.0 \n",
" 41.0 \n",
" 14.0 \n",
" 672.0 \n",
" 236.0 \n",
" 321.0 \n",
" 999.0 \n",
" 137.0 \n",
" 42.0 \n",
" 23.0 \n",
" 9.0 \n",
" 5.0 \n",
" 29.0 \n",
" 29.0 \n",
" 49.0 \n",
" 102.0 \n",
" 4.25 \n",
" 54.0 \n",
" 43.0 \n",
" 1.0 \n",
" 2.0 \n",
" 1.0 \n",
" 6.0 \n",
" 0.25 \n",
" 5.0 \n",
" 1.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 30.0 \n",
" 22.0 \n",
" 12.0 \n",
" 16.0 \n",
" 2.0 \n",
" 5.0 \n",
" 13.5 \n",
" 32.0 \n",
" 135.0 \n",
" 27.9 \n",
" 102.0 \n",
" 261.0 \n",
" 121.0 \n",
" 0.0 \n",
" 28.0 \n",
" 44.0 \n",
" 21.0 \n",
" 0.0 \n",
" 1475.0 \n",
" 28.0 \n",
" 68.0 \n",
" 58.3 \n",
" 23.0 \n",
" 4.0 \n",
" 892.0 \n",
" 7.0 \n",
" 45.0 \n",
" 42.0 \n",
" 1176.0 \n",
" 893.0 \n",
" 75.9 \n",
" 178.0 \n",
" 74 \n",
" 68.0 \n",
" NaN \n",
" 14.0 \n",
" 2 \n",
" NaN \n",
" 0 \n",
" 1.07 \n",
" 22.0 \n",
" 34.0 \n",
" -12.0 \n",
" -0.52 \n",
" 0.58 \n",
" 27.0 \n",
" 31.3 \n",
" -4.3 \n",
" -0.18 \n",
" 0.94 \n",
" 0.0 \n",
" 27 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 213.0 \n",
" 22.0 \n",
" 37.0 \n",
" 37.3 \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2017-2018 \n",
" \n",
" \n",
" 2 \n",
" Aaron Lennon \n",
" eng ENG \n",
" MF \n",
" Burnley \n",
" eng Premier League \n",
" 30 \n",
" 1987.0 \n",
" 14 \n",
" 13 \n",
" 1118 \n",
" 12.4 \n",
" 0 \n",
" 2 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 2 \n",
" 0 \n",
" 0.00 \n",
" 0.16 \n",
" 0.16 \n",
" 0.00 \n",
" 0.16 \n",
" 0.6 \n",
" 0.6 \n",
" 1.4 \n",
" 2.0 \n",
" 0.05 \n",
" 0.11 \n",
" 0.16 \n",
" 0.05 \n",
" 0.16 \n",
" Matches \n",
" 10.0 \n",
" 4 \n",
" 40.0 \n",
" 0.81 \n",
" 0.32 \n",
" 0.00 \n",
" 0.00 \n",
" 16.6 \n",
" 0.0 \n",
" 0.06 \n",
" -0.6 \n",
" -0.6 \n",
" 204.0 \n",
" 294.0 \n",
" 69.4 \n",
" 3223.0 \n",
" 887.0 \n",
" 116.0 \n",
" 142.0 \n",
" 81.7 \n",
" 68.0 \n",
" 92.0 \n",
" 73.9 \n",
" 17.0 \n",
" 34.0 \n",
" 50.0 \n",
" 0.6 \n",
" 8.0 \n",
" 11.0 \n",
" 13.0 \n",
" 5.0 \n",
" 22.0 \n",
" 289.0 \n",
" 5.0 \n",
" 0.0 \n",
" 61.0 \n",
" 5.0 \n",
" 19.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 193.0 \n",
" 51.0 \n",
" 50.0 \n",
" 27.0 \n",
" 250.0 \n",
" 7.0 \n",
" 4.0 \n",
" 3.0 \n",
" 0.0 \n",
" 9.0 \n",
" 8.0 \n",
" 30.0 \n",
" 18.0 \n",
" 1.45 \n",
" 12.0 \n",
" 0.0 \n",
" 1.0 \n",
" 1.0 \n",
" 0.0 \n",
" 3.0 \n",
" 0.24 \n",
" 2.0 \n",
" 0.0 \n",
" 0.0 \n",
" 1.0 \n",
" 0.0 \n",
" 0.0 \n",
" 18.0 \n",
" 10.0 \n",
" 6.0 \n",
" 11.0 \n",
" 1.0 \n",
" 4.0 \n",
" 19.0 \n",
" 17.0 \n",
" 61.0 \n",
" 26.3 \n",
" 74.0 \n",
" 102.0 \n",
" 56.0 \n",
" 0.0 \n",
" 24.0 \n",
" 31.0 \n",
" 9.0 \n",
" 0.0 \n",
" 424.0 \n",
" 19.0 \n",
" 36.0 \n",
" 48.0 \n",
" 12.0 \n",
" 2.0 \n",
" 290.0 \n",
" 12.0 \n",
" 9.0 \n",
" 25.0 \n",
" 353.0 \n",
" 259.0 \n",
" 73.4 \n",
" 41.0 \n",
" 80 \n",
" 32.7 \n",
" NaN \n",
" 6.0 \n",
" 1 \n",
" NaN \n",
" 0 \n",
" 1.43 \n",
" 17.0 \n",
" 15.0 \n",
" 2.0 \n",
" 0.16 \n",
" 0.36 \n",
" 13.8 \n",
" 15.4 \n",
" -1.5 \n",
" -0.12 \n",
" 0.49 \n",
" 0.0 \n",
" 12 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 80.0 \n",
" 7.0 \n",
" 15.0 \n",
" 31.8 \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2017-2018 \n",
" \n",
" \n",
" 3 \n",
" Aaron Lennon \n",
" eng ENG \n",
" FW,MF \n",
" Everton \n",
" eng Premier League \n",
" 30 \n",
" 1987.0 \n",
" 15 \n",
" 9 \n",
" 793 \n",
" 8.8 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 0.3 \n",
" 0.3 \n",
" 0.5 \n",
" 0.8 \n",
" 0.04 \n",
" 0.05 \n",
" 0.09 \n",
" 0.04 \n",
" 0.09 \n",
" Matches \n",
" 4.0 \n",
" 1 \n",
" 25.0 \n",
" 0.45 \n",
" 0.11 \n",
" 0.00 \n",
" 0.00 \n",
" 14.8 \n",
" 0.0 \n",
" 0.08 \n",
" -0.3 \n",
" -0.3 \n",
" 152.0 \n",
" 214.0 \n",
" 71.0 \n",
" 2286.0 \n",
" 672.0 \n",
" 92.0 \n",
" 115.0 \n",
" 80.0 \n",
" 53.0 \n",
" 69.0 \n",
" 76.8 \n",
" 5.0 \n",
" 13.0 \n",
" 38.5 \n",
" -0.5 \n",
" 5.0 \n",
" 9.0 \n",
" 3.0 \n",
" 2.0 \n",
" 17.0 \n",
" 199.0 \n",
" 15.0 \n",
" 0.0 \n",
" 49.0 \n",
" 2.0 \n",
" 8.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 129.0 \n",
" 47.0 \n",
" 38.0 \n",
" 29.0 \n",
" 159.0 \n",
" 10.0 \n",
" 14.0 \n",
" 0.0 \n",
" 1.0 \n",
" 3.0 \n",
" 7.0 \n",
" 15.0 \n",
" 16.0 \n",
" 1.82 \n",
" 11.0 \n",
" 0.0 \n",
" 1.0 \n",
" 2.0 \n",
" 0.0 \n",
" 4.0 \n",
" 0.45 \n",
" 2.0 \n",
" 0.0 \n",
" 0.0 \n",
" 1.0 \n",
" 1.0 \n",
" 0.0 \n",
" 18.0 \n",
" 10.0 \n",
" 9.0 \n",
" 7.0 \n",
" 2.0 \n",
" 5.0 \n",
" 25.0 \n",
" 15.0 \n",
" 38.0 \n",
" 19.3 \n",
" 49.0 \n",
" 102.0 \n",
" 46.0 \n",
" 0.0 \n",
" 18.0 \n",
" 25.0 \n",
" 9.0 \n",
" 0.0 \n",
" 322.0 \n",
" 7.0 \n",
" 22.0 \n",
" 35.0 \n",
" 8.0 \n",
" 1.0 \n",
" 186.0 \n",
" 8.0 \n",
" 9.0 \n",
" 17.0 \n",
" 288.0 \n",
" 195.0 \n",
" 67.7 \n",
" 33.0 \n",
" 53 \n",
" 23.2 \n",
" NaN \n",
" 2.0 \n",
" 6 \n",
" NaN \n",
" 0 \n",
" 1.27 \n",
" 15.0 \n",
" 14.0 \n",
" 1.0 \n",
" 0.11 \n",
" 0.63 \n",
" 12.0 \n",
" 13.7 \n",
" -1.6 \n",
" -0.19 \n",
" 0.13 \n",
" 0.0 \n",
" 9 \n",
" 2.0 \n",
" 0.0 \n",
" 0.0 \n",
" 50.0 \n",
" 6.0 \n",
" 12.0 \n",
" 33.3 \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2017-2018 \n",
" \n",
" \n",
" 4 \n",
" Aaron Mooy \n",
" au AUS \n",
" MF \n",
" Huddersfield \n",
" eng Premier League \n",
" 26 \n",
" 1990.0 \n",
" 36 \n",
" 34 \n",
" 3067 \n",
" 34.1 \n",
" 4 \n",
" 3 \n",
" 3 \n",
" 1 \n",
" 1 \n",
" 4 \n",
" 0 \n",
" 0.12 \n",
" 0.09 \n",
" 0.21 \n",
" 0.09 \n",
" 0.18 \n",
" 2.6 \n",
" 1.8 \n",
" 3.1 \n",
" 4.9 \n",
" 0.08 \n",
" 0.09 \n",
" 0.17 \n",
" 0.05 \n",
" 0.14 \n",
" Matches \n",
" 28.0 \n",
" 6 \n",
" 21.4 \n",
" 0.82 \n",
" 0.18 \n",
" 0.11 \n",
" 0.50 \n",
" 22.0 \n",
" 3.0 \n",
" 0.06 \n",
" 1.4 \n",
" 1.2 \n",
" 1561.0 \n",
" 2067.0 \n",
" 75.5 \n",
" 27911.0 \n",
" 7921.0 \n",
" 783.0 \n",
" 876.0 \n",
" 89.4 \n",
" 540.0 \n",
" 678.0 \n",
" 79.6 \n",
" 196.0 \n",
" 397.0 \n",
" 49.4 \n",
" -0.1 \n",
" 48.0 \n",
" 167.0 \n",
" 27.0 \n",
" 9.0 \n",
" 163.0 \n",
" 1897.0 \n",
" 170.0 \n",
" 1.0 \n",
" 422.0 \n",
" 100.0 \n",
" 85.0 \n",
" 77.0 \n",
" 35.0 \n",
" 21.0 \n",
" 5.0 \n",
" 1293.0 \n",
" 283.0 \n",
" 491.0 \n",
" 507.0 \n",
" 1444.0 \n",
" 77.0 \n",
" 5.0 \n",
" 4.0 \n",
" 6.0 \n",
" 38.0 \n",
" 60.0 \n",
" 60.0 \n",
" 73.0 \n",
" 2.14 \n",
" 54.0 \n",
" 16.0 \n",
" 0.0 \n",
" 1.0 \n",
" 2.0 \n",
" 5.0 \n",
" 0.15 \n",
" 4.0 \n",
" 1.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 105.0 \n",
" 55.0 \n",
" 38.0 \n",
" 54.0 \n",
" 13.0 \n",
" 32.0 \n",
" 44.4 \n",
" 40.0 \n",
" 193.0 \n",
" 29.5 \n",
" 192.0 \n",
" 355.0 \n",
" 107.0 \n",
" 2.0 \n",
" 52.0 \n",
" 151.0 \n",
" 70.0 \n",
" 0.0 \n",
" 2496.0 \n",
" 65.0 \n",
" 32.0 \n",
" 53.2 \n",
" 26.0 \n",
" 0.0 \n",
" 1543.0 \n",
" 6.0 \n",
" 33.0 \n",
" 60.0 \n",
" 1710.0 \n",
" 1540.0 \n",
" 90.1 \n",
" 85.0 \n",
" 85 \n",
" 89.7 \n",
" NaN \n",
" 29.0 \n",
" 2 \n",
" NaN \n",
" 0 \n",
" 0.94 \n",
" 25.0 \n",
" 52.0 \n",
" -27.0 \n",
" -0.79 \n",
" -0.03 \n",
" 28.7 \n",
" 49.8 \n",
" -21.1 \n",
" -0.62 \n",
" -0.01 \n",
" 0.0 \n",
" 26 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 455.0 \n",
" 35.0 \n",
" 42.0 \n",
" 45.5 \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2017-2018 \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Player Nation Pos Squad Comp Age \\\n",
"0 Aaron Cresswell eng ENG DF West Ham eng Premier League 27 \n",
"1 Aaron Hunt de GER MF,FW Hamburger SV de Bundesliga 30 \n",
"2 Aaron Lennon eng ENG MF Burnley eng Premier League 30 \n",
"3 Aaron Lennon eng ENG FW,MF Everton eng Premier League 30 \n",
"4 Aaron Mooy au AUS MF Huddersfield eng Premier League 26 \n",
"\n",
" Born MP Starts Min 90s Gls Ast G-PK PK PKatt CrdY CrdR \\\n",
"0 1989.0 36 35 3069 34.1 1 3 1 0 0 7 0 \n",
"1 1986.0 28 26 2081 23.1 3 2 2 1 1 1 0 \n",
"2 1987.0 14 13 1118 12.4 0 2 0 0 0 2 0 \n",
"3 1987.0 15 9 793 8.8 0 0 0 0 0 0 0 \n",
"4 1990.0 36 34 3067 34.1 4 3 3 1 1 4 0 \n",
"\n",
" Gls.1 Ast.1 G+A G-PK.1 G+A-PK xG npxG xA npxG+xA xG.1 xA.1 \\\n",
"0 0.03 0.09 0.12 0.03 0.12 0.8 0.8 2.8 3.6 0.02 0.08 \n",
"1 0.13 0.09 0.22 0.09 0.17 2.8 2.1 5.6 7.6 0.12 0.23 \n",
"2 0.00 0.16 0.16 0.00 0.16 0.6 0.6 1.4 2.0 0.05 0.11 \n",
"3 0.00 0.00 0.00 0.00 0.00 0.3 0.3 0.5 0.8 0.04 0.05 \n",
"4 0.12 0.09 0.21 0.09 0.18 2.6 1.8 3.1 4.9 0.08 0.09 \n",
"\n",
" xG+xA npxG.1 npxG+xA.1 Matches Sh SoT SoT% Sh/90 SoT/90 G/Sh \\\n",
"0 0.10 0.02 0.10 Matches 21.0 6 28.6 0.62 0.18 0.05 \n",
"1 0.35 0.09 0.32 Matches 27.0 6 22.2 1.17 0.26 0.07 \n",
"2 0.16 0.05 0.16 Matches 10.0 4 40.0 0.81 0.32 0.00 \n",
"3 0.09 0.04 0.09 Matches 4.0 1 25.0 0.45 0.11 0.00 \n",
"4 0.17 0.05 0.14 Matches 28.0 6 21.4 0.82 0.18 0.11 \n",
"\n",
" G/SoT Dist FK npxG/Sh G-xG np:G-xG Cmp Att Cmp% TotDist \\\n",
"0 0.17 28.1 8.0 0.04 0.2 0.2 1224.0 1708.0 71.7 23519.0 \n",
"1 0.33 23.4 10.0 0.08 0.2 -0.1 883.0 1229.0 71.8 16889.0 \n",
"2 0.00 16.6 0.0 0.06 -0.6 -0.6 204.0 294.0 69.4 3223.0 \n",
"3 0.00 14.8 0.0 0.08 -0.3 -0.3 152.0 214.0 71.0 2286.0 \n",
"4 0.50 22.0 3.0 0.06 1.4 1.2 1561.0 2067.0 75.5 27911.0 \n",
"\n",
" PrgDist Cmp.1 Att.1 Cmp%.1 Cmp.2 Att.2 Cmp%.2 Cmp.3 Att.3 Cmp%.3 \\\n",
"0 10212.0 560.0 623.0 89.9 472.0 587.0 80.4 183.0 449.0 40.8 \n",
"1 5315.0 406.0 480.0 84.6 292.0 376.0 77.7 165.0 303.0 54.5 \n",
"2 887.0 116.0 142.0 81.7 68.0 92.0 73.9 17.0 34.0 50.0 \n",
"3 672.0 92.0 115.0 80.0 53.0 69.0 76.8 5.0 13.0 38.5 \n",
"4 7921.0 783.0 876.0 89.4 540.0 678.0 79.6 196.0 397.0 49.4 \n",
"\n",
" A-xA KP 1/3 PPA CrsPA Prog Live Dead TB Press Sw \\\n",
"0 0.2 35.0 117.0 21.0 14.0 96.0 1343.0 365.0 1.0 222.0 83.0 \n",
"1 -3.6 65.0 83.0 31.0 5.0 97.0 977.0 252.0 11.0 245.0 67.0 \n",
"2 0.6 8.0 11.0 13.0 5.0 22.0 289.0 5.0 0.0 61.0 5.0 \n",
"3 -0.5 5.0 9.0 3.0 2.0 17.0 199.0 15.0 0.0 49.0 2.0 \n",
"4 -0.1 48.0 167.0 27.0 9.0 163.0 1897.0 170.0 1.0 422.0 100.0 \n",
"\n",
" Crs CK In Out Str Ground Low High Left Right Head \\\n",
"0 93.0 67.0 35.0 15.0 9.0 893.0 293.0 522.0 1329.0 78.0 59.0 \n",
"1 66.0 123.0 35.0 41.0 14.0 672.0 236.0 321.0 999.0 137.0 42.0 \n",
"2 19.0 0.0 0.0 0.0 0.0 193.0 51.0 50.0 27.0 250.0 7.0 \n",
"3 8.0 0.0 0.0 0.0 0.0 129.0 47.0 38.0 29.0 159.0 10.0 \n",
"4 85.0 77.0 35.0 21.0 5.0 1293.0 283.0 491.0 507.0 1444.0 77.0 \n",
"\n",
" TI Other Off Out.1 Int Blocks SCA SCA90 PassLive PassDead \\\n",
"0 210.0 5.0 15.0 44.0 39.0 52.0 62.0 1.82 35.0 21.0 \n",
"1 23.0 9.0 5.0 29.0 29.0 49.0 102.0 4.25 54.0 43.0 \n",
"2 4.0 3.0 0.0 9.0 8.0 30.0 18.0 1.45 12.0 0.0 \n",
"3 14.0 0.0 1.0 3.0 7.0 15.0 16.0 1.82 11.0 0.0 \n",
"4 5.0 4.0 6.0 38.0 60.0 60.0 73.0 2.14 54.0 16.0 \n",
"\n",
" Drib Fld Def GCA GCA90 PassLive.1 PassDead.1 Drib.1 Sh.1 Fld.1 \\\n",
"0 1.0 3.0 0.0 9.0 0.26 6.0 3.0 0.0 0.0 0.0 \n",
"1 1.0 2.0 1.0 6.0 0.25 5.0 1.0 0.0 0.0 0.0 \n",
"2 1.0 1.0 0.0 3.0 0.24 2.0 0.0 0.0 1.0 0.0 \n",
"3 1.0 2.0 0.0 4.0 0.45 2.0 0.0 0.0 1.0 1.0 \n",
"4 0.0 1.0 2.0 5.0 0.15 4.0 1.0 0.0 0.0 0.0 \n",
"\n",
" Def.1 Tkl TklW Def 3rd Mid 3rd Att 3rd Tkl.1 Tkl% Past Succ \\\n",
"0 0.0 38.0 18.0 15.0 18.0 5.0 17.0 53.1 15.0 115.0 \n",
"1 0.0 30.0 22.0 12.0 16.0 2.0 5.0 13.5 32.0 135.0 \n",
"2 0.0 18.0 10.0 6.0 11.0 1.0 4.0 19.0 17.0 61.0 \n",
"3 0.0 18.0 10.0 9.0 7.0 2.0 5.0 25.0 15.0 38.0 \n",
"4 0.0 105.0 55.0 38.0 54.0 13.0 32.0 44.4 40.0 193.0 \n",
"\n",
" % Def 3rd.1 Mid 3rd.1 Att 3rd.1 ShSv Pass Tkl+Int Clr Err \\\n",
"0 32.1 181.0 123.0 54.0 0.0 38.0 90.0 133.0 0.0 \n",
"1 27.9 102.0 261.0 121.0 0.0 28.0 44.0 21.0 0.0 \n",
"2 26.3 74.0 102.0 56.0 0.0 24.0 31.0 9.0 0.0 \n",
"3 19.3 49.0 102.0 46.0 0.0 18.0 25.0 9.0 0.0 \n",
"4 29.5 192.0 355.0 107.0 2.0 52.0 151.0 70.0 0.0 \n",
"\n",
" Touches Def Pen Att Pen Succ% #Pl Megs Carries CPA Mis Dis \\\n",
"0 2050.0 125.0 17.0 33.3 7.0 0.0 1071.0 2.0 18.0 19.0 \n",
"1 1475.0 28.0 68.0 58.3 23.0 4.0 892.0 7.0 45.0 42.0 \n",
"2 424.0 19.0 36.0 48.0 12.0 2.0 290.0 12.0 9.0 25.0 \n",
"3 322.0 7.0 22.0 35.0 8.0 1.0 186.0 8.0 9.0 17.0 \n",
"4 2496.0 65.0 32.0 53.2 26.0 0.0 1543.0 6.0 33.0 60.0 \n",
"\n",
" Targ Rec Rec% Prog.1 Mn/MP Min% Mn/Start Compl Subs Mn/Sub \\\n",
"0 1171.0 1094.0 93.4 31.0 85 89.7 NaN 30.0 1 NaN \n",
"1 1176.0 893.0 75.9 178.0 74 68.0 NaN 14.0 2 NaN \n",
"2 353.0 259.0 73.4 41.0 80 32.7 NaN 6.0 1 NaN \n",
"3 288.0 195.0 67.7 33.0 53 23.2 NaN 2.0 6 NaN \n",
"4 1710.0 1540.0 90.1 85.0 85 89.7 NaN 29.0 2 NaN \n",
"\n",
" unSub PPM onG onGA +/- +/-90 On-Off onxG onxGA xG+/- xG+/-90 \\\n",
"0 1 1.14 45.0 60.0 -15.0 -0.44 0.84 38.0 51.5 -13.5 -0.40 \n",
"1 0 1.07 22.0 34.0 -12.0 -0.52 0.58 27.0 31.3 -4.3 -0.18 \n",
"2 0 1.43 17.0 15.0 2.0 0.16 0.36 13.8 15.4 -1.5 -0.12 \n",
"3 0 1.27 15.0 14.0 1.0 0.11 0.63 12.0 13.7 -1.6 -0.19 \n",
"4 0 0.94 25.0 52.0 -27.0 -0.79 -0.03 28.7 49.8 -21.1 -0.62 \n",
"\n",
" On-Off.1 2CrdY Fls PKwon PKcon OG Recov Won Lost Won% \\\n",
"0 1.09 0.0 20 0.0 0.0 0.0 277.0 70.0 57.0 55.1 \n",
"1 0.94 0.0 27 0.0 0.0 0.0 213.0 22.0 37.0 37.3 \n",
"2 0.49 0.0 12 0.0 0.0 0.0 80.0 7.0 15.0 31.8 \n",
"3 0.13 0.0 9 2.0 0.0 0.0 50.0 6.0 12.0 33.3 \n",
"4 -0.01 0.0 26 0.0 0.0 0.0 455.0 35.0 42.0 45.5 \n",
"\n",
" League Name League ID Season \n",
"0 Big-5-European-Leagues Big5 2017-2018 \n",
"1 Big-5-European-Leagues Big5 2017-2018 \n",
"2 Big-5-European-Leagues Big5 2017-2018 \n",
"3 Big-5-European-Leagues Big5 2017-2018 \n",
"4 Big-5-European-Leagues Big5 2017-2018 "
]
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Display the first five rows of the raw DataFrame, df_fbref_outfield_raw\n",
"df_fbref_outfield_raw.head()"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" Player \n",
" Nation \n",
" Pos \n",
" Squad \n",
" Comp \n",
" Age \n",
" Born \n",
" MP \n",
" Starts \n",
" Min \n",
" 90s \n",
" Gls \n",
" Ast \n",
" G-PK \n",
" PK \n",
" PKatt \n",
" CrdY \n",
" CrdR \n",
" Gls.1 \n",
" Ast.1 \n",
" G+A \n",
" G-PK.1 \n",
" G+A-PK \n",
" xG \n",
" npxG \n",
" xA \n",
" npxG+xA \n",
" xG.1 \n",
" xA.1 \n",
" xG+xA \n",
" npxG.1 \n",
" npxG+xA.1 \n",
" Matches \n",
" Sh \n",
" SoT \n",
" SoT% \n",
" Sh/90 \n",
" SoT/90 \n",
" G/Sh \n",
" G/SoT \n",
" Dist \n",
" FK \n",
" npxG/Sh \n",
" G-xG \n",
" np:G-xG \n",
" Cmp \n",
" Att \n",
" Cmp% \n",
" TotDist \n",
" PrgDist \n",
" Cmp.1 \n",
" Att.1 \n",
" Cmp%.1 \n",
" Cmp.2 \n",
" Att.2 \n",
" Cmp%.2 \n",
" Cmp.3 \n",
" Att.3 \n",
" Cmp%.3 \n",
" A-xA \n",
" KP \n",
" 1/3 \n",
" PPA \n",
" CrsPA \n",
" Prog \n",
" Live \n",
" Dead \n",
" TB \n",
" Press \n",
" Sw \n",
" Crs \n",
" CK \n",
" In \n",
" Out \n",
" Str \n",
" Ground \n",
" Low \n",
" High \n",
" Left \n",
" Right \n",
" Head \n",
" TI \n",
" Other \n",
" Off \n",
" Out.1 \n",
" Int \n",
" Blocks \n",
" SCA \n",
" SCA90 \n",
" PassLive \n",
" PassDead \n",
" Drib \n",
" Fld \n",
" Def \n",
" GCA \n",
" GCA90 \n",
" PassLive.1 \n",
" PassDead.1 \n",
" Drib.1 \n",
" Sh.1 \n",
" Fld.1 \n",
" Def.1 \n",
" Tkl \n",
" TklW \n",
" Def 3rd \n",
" Mid 3rd \n",
" Att 3rd \n",
" Tkl.1 \n",
" Tkl% \n",
" Past \n",
" Succ \n",
" % \n",
" Def 3rd.1 \n",
" Mid 3rd.1 \n",
" Att 3rd.1 \n",
" ShSv \n",
" Pass \n",
" Tkl+Int \n",
" Clr \n",
" Err \n",
" Touches \n",
" Def Pen \n",
" Att Pen \n",
" Succ% \n",
" #Pl \n",
" Megs \n",
" Carries \n",
" CPA \n",
" Mis \n",
" Dis \n",
" Targ \n",
" Rec \n",
" Rec% \n",
" Prog.1 \n",
" Mn/MP \n",
" Min% \n",
" Mn/Start \n",
" Compl \n",
" Subs \n",
" Mn/Sub \n",
" unSub \n",
" PPM \n",
" onG \n",
" onGA \n",
" +/- \n",
" +/-90 \n",
" On-Off \n",
" onxG \n",
" onxGA \n",
" xG+/- \n",
" xG+/-90 \n",
" On-Off.1 \n",
" 2CrdY \n",
" Fls \n",
" PKwon \n",
" PKcon \n",
" OG \n",
" Recov \n",
" Won \n",
" Lost \n",
" Won% \n",
" League Name \n",
" League ID \n",
" Season \n",
" \n",
" \n",
" \n",
" \n",
" 12748 \n",
" Ãscar de Marcos \n",
" es ESP \n",
" DF \n",
" Athletic Club \n",
" es La Liga \n",
" 32 \n",
" 1989.0 \n",
" 1 \n",
" 1 \n",
" 52 \n",
" 0.6 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 1 \n",
" 0 \n",
" 0.00 \n",
" 0.0 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.06 \n",
" 0.00 \n",
" 0.06 \n",
" 0.06 \n",
" 0.06 \n",
" Matches \n",
" 1.0 \n",
" 1 \n",
" 100.0 \n",
" 1.73 \n",
" 1.73 \n",
" 0.0 \n",
" 0.0 \n",
" 20.1 \n",
" 0.0 \n",
" 0.03 \n",
" 0.0 \n",
" 0.0 \n",
" 21.0 \n",
" 32.0 \n",
" 65.6 \n",
" 339.0 \n",
" 139.0 \n",
" 9.0 \n",
" 13.0 \n",
" 69.2 \n",
" 11.0 \n",
" 14.0 \n",
" 78.6 \n",
" 1.0 \n",
" 3.0 \n",
" 33.3 \n",
" 0.0 \n",
" 0.0 \n",
" 1.0 \n",
" 0.0 \n",
" 0.0 \n",
" 3.0 \n",
" 25.0 \n",
" 7.0 \n",
" 0.0 \n",
" 2.0 \n",
" 0.0 \n",
" 3.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 19.0 \n",
" 8.0 \n",
" 5.0 \n",
" 1.0 \n",
" 23.0 \n",
" 1.0 \n",
" 7.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 2.0 \n",
" 3.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" NaN \n",
" 0.0 \n",
" 2.0 \n",
" 50.0 \n",
" 0.0 \n",
" 2.0 \n",
" 2.0 \n",
" 0.0 \n",
" 3.0 \n",
" 0.0 \n",
" 2.0 \n",
" 0.0 \n",
" 38.0 \n",
" 1.0 \n",
" 1.0 \n",
" NaN \n",
" 0.0 \n",
" 0.0 \n",
" 17.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 24.0 \n",
" 22.0 \n",
" 91.7 \n",
" 0.0 \n",
" 52 \n",
" 19.3 \n",
" 52.0 \n",
" 0.0 \n",
" 0 \n",
" NaN \n",
" 1 \n",
" 1.00 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.00 \n",
" -0.41 \n",
" 0.2 \n",
" 0.8 \n",
" -0.6 \n",
" -0.97 \n",
" -1.36 \n",
" 0.0 \n",
" 1 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 4.0 \n",
" 1.0 \n",
" 0.0 \n",
" 100.0 \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2021-2022 \n",
" \n",
" \n",
" 12749 \n",
" Ä°lkay GündoÄan \n",
" de GER \n",
" MF \n",
" Manchester City \n",
" eng Premier League \n",
" 30 \n",
" 1990.0 \n",
" 3 \n",
" 3 \n",
" 248 \n",
" 2.8 \n",
" 1 \n",
" 0 \n",
" 1 \n",
" 0 \n",
" 0 \n",
" 1 \n",
" 0 \n",
" 0.36 \n",
" 0.0 \n",
" 0.36 \n",
" 0.36 \n",
" 0.36 \n",
" 0.5 \n",
" 0.5 \n",
" 0.7 \n",
" 1.2 \n",
" 0.18 \n",
" 0.27 \n",
" 0.45 \n",
" 0.18 \n",
" 0.45 \n",
" Matches \n",
" 5.0 \n",
" 1 \n",
" 20.0 \n",
" 1.81 \n",
" 0.36 \n",
" 0.2 \n",
" 1.0 \n",
" 18.7 \n",
" 1.0 \n",
" 0.10 \n",
" 0.5 \n",
" 0.5 \n",
" 171.0 \n",
" 204.0 \n",
" 83.8 \n",
" 2621.0 \n",
" 469.0 \n",
" 107.0 \n",
" 110.0 \n",
" 97.3 \n",
" 46.0 \n",
" 55.0 \n",
" 83.6 \n",
" 16.0 \n",
" 32.0 \n",
" 50.0 \n",
" -0.7 \n",
" 4.0 \n",
" 14.0 \n",
" 5.0 \n",
" 0.0 \n",
" 11.0 \n",
" 182.0 \n",
" 22.0 \n",
" 1.0 \n",
" 12.0 \n",
" 5.0 \n",
" 7.0 \n",
" 16.0 \n",
" 9.0 \n",
" 1.0 \n",
" 1.0 \n",
" 165.0 \n",
" 13.0 \n",
" 26.0 \n",
" 57.0 \n",
" 140.0 \n",
" 6.0 \n",
" 0.0 \n",
" 0.0 \n",
" 1.0 \n",
" 3.0 \n",
" 3.0 \n",
" 4.0 \n",
" 8.0 \n",
" 2.9 \n",
" 6.0 \n",
" 2.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 5.0 \n",
" 3.0 \n",
" 0.0 \n",
" 5.0 \n",
" 0.0 \n",
" 2.0 \n",
" 66.7 \n",
" 1.0 \n",
" 5.0 \n",
" 31.3 \n",
" 2.0 \n",
" 9.0 \n",
" 5.0 \n",
" 1.0 \n",
" 0.0 \n",
" 6.0 \n",
" 2.0 \n",
" 0.0 \n",
" 229.0 \n",
" 3.0 \n",
" 13.0 \n",
" 75.0 \n",
" 3.0 \n",
" 1.0 \n",
" 166.0 \n",
" 2.0 \n",
" 1.0 \n",
" 5.0 \n",
" 201.0 \n",
" 183.0 \n",
" 91.0 \n",
" 19.0 \n",
" 83 \n",
" 91.9 \n",
" 83.0 \n",
" 2.0 \n",
" 0 \n",
" NaN \n",
" 0 \n",
" 2.00 \n",
" 8.0 \n",
" 1.0 \n",
" 7.0 \n",
" 2.54 \n",
" -5.64 \n",
" 7.1 \n",
" 1.4 \n",
" 5.7 \n",
" 2.07 \n",
" -2.91 \n",
" 0.0 \n",
" 4 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 11.0 \n",
" 1.0 \n",
" 1.0 \n",
" 50.0 \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2021-2022 \n",
" \n",
" \n",
" 12750 \n",
" Åukasz FabiaÅski \n",
" pl POL \n",
" GK \n",
" West Ham \n",
" eng Premier League \n",
" 36 \n",
" 1985.0 \n",
" 3 \n",
" 3 \n",
" 270 \n",
" 3.0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0.00 \n",
" 0.0 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" Matches \n",
" 0.0 \n",
" 0 \n",
" NaN \n",
" 0.00 \n",
" 0.00 \n",
" NaN \n",
" NaN \n",
" NaN \n",
" 0.0 \n",
" NaN \n",
" 0.0 \n",
" 0.0 \n",
" 43.0 \n",
" 65.0 \n",
" 66.2 \n",
" 1637.0 \n",
" 1015.0 \n",
" 3.0 \n",
" 3.0 \n",
" 100.0 \n",
" 14.0 \n",
" 14.0 \n",
" 100.0 \n",
" 26.0 \n",
" 47.0 \n",
" 55.3 \n",
" 0.0 \n",
" 0.0 \n",
" 1.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 42.0 \n",
" 23.0 \n",
" 0.0 \n",
" 4.0 \n",
" 5.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 26.0 \n",
" 5.0 \n",
" 34.0 \n",
" 3.0 \n",
" 51.0 \n",
" 0.0 \n",
" 0.0 \n",
" 9.0 \n",
" 0.0 \n",
" 2.0 \n",
" 0.0 \n",
" 1.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" NaN \n",
" 0.0 \n",
" 0.0 \n",
" NaN \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 67.0 \n",
" 61.0 \n",
" 0.0 \n",
" NaN \n",
" 0.0 \n",
" 0.0 \n",
" 30.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 32.0 \n",
" 31.0 \n",
" 96.9 \n",
" 0.0 \n",
" 90 \n",
" 100.0 \n",
" 90.0 \n",
" 3.0 \n",
" 0 \n",
" NaN \n",
" 0 \n",
" 2.33 \n",
" 10.0 \n",
" 5.0 \n",
" 5.0 \n",
" 1.67 \n",
" NaN \n",
" 6.0 \n",
" 2.9 \n",
" 3.1 \n",
" 1.03 \n",
" NaN \n",
" 0.0 \n",
" 0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 6.0 \n",
" 0.0 \n",
" 0.0 \n",
" NaN \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2021-2022 \n",
" \n",
" \n",
" 12751 \n",
" Åukasz Skorupski \n",
" pl POL \n",
" GK \n",
" Bologna \n",
" it Serie A \n",
" 30 \n",
" 1991.0 \n",
" 2 \n",
" 2 \n",
" 180 \n",
" 2.0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0.00 \n",
" 0.0 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" Matches \n",
" 0.0 \n",
" 0 \n",
" NaN \n",
" 0.00 \n",
" 0.00 \n",
" NaN \n",
" NaN \n",
" NaN \n",
" 0.0 \n",
" NaN \n",
" 0.0 \n",
" 0.0 \n",
" 48.0 \n",
" 72.0 \n",
" 66.7 \n",
" 1200.0 \n",
" 760.0 \n",
" 13.0 \n",
" 13.0 \n",
" 100.0 \n",
" 16.0 \n",
" 16.0 \n",
" 100.0 \n",
" 15.0 \n",
" 39.0 \n",
" 38.5 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 45.0 \n",
" 27.0 \n",
" 0.0 \n",
" 12.0 \n",
" 1.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 37.0 \n",
" 5.0 \n",
" 30.0 \n",
" 7.0 \n",
" 57.0 \n",
" 1.0 \n",
" 0.0 \n",
" 7.0 \n",
" 0.0 \n",
" 6.0 \n",
" 0.0 \n",
" 1.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" NaN \n",
" 0.0 \n",
" 0.0 \n",
" NaN \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 76.0 \n",
" 67.0 \n",
" 0.0 \n",
" NaN \n",
" 0.0 \n",
" 0.0 \n",
" 38.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 34.0 \n",
" 34.0 \n",
" 100.0 \n",
" 0.0 \n",
" 90 \n",
" 100.0 \n",
" 90.0 \n",
" 2.0 \n",
" 0 \n",
" NaN \n",
" 0 \n",
" 2.00 \n",
" 3.0 \n",
" 2.0 \n",
" 1.0 \n",
" 0.50 \n",
" NaN \n",
" 1.8 \n",
" 2.6 \n",
" -0.8 \n",
" -0.38 \n",
" NaN \n",
" 0.0 \n",
" 0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 7.0 \n",
" 0.0 \n",
" 0.0 \n",
" NaN \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2021-2022 \n",
" \n",
" \n",
" 12752 \n",
" Å ime Vrsaljko \n",
" hr CRO \n",
" DF \n",
" Atlético Madrid \n",
" es La Liga \n",
" 29 \n",
" 1992.0 \n",
" 1 \n",
" 0 \n",
" 1 \n",
" 0.0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0.00 \n",
" 0.0 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" Matches \n",
" 0.0 \n",
" 0 \n",
" NaN \n",
" 0.00 \n",
" 0.00 \n",
" NaN \n",
" NaN \n",
" NaN \n",
" 0.0 \n",
" NaN \n",
" 0.0 \n",
" 0.0 \n",
" 1.0 \n",
" 1.0 \n",
" 100.0 \n",
" 9.0 \n",
" 8.0 \n",
" 1.0 \n",
" 1.0 \n",
" 100.0 \n",
" 0.0 \n",
" 0.0 \n",
" NaN \n",
" 0.0 \n",
" 0.0 \n",
" NaN \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 1.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 1.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 1.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" NaN \n",
" 0.0 \n",
" 0.0 \n",
" NaN \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 1.0 \n",
" 0.0 \n",
" 2.0 \n",
" 1.0 \n",
" 0.0 \n",
" NaN \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 1.0 \n",
" 1.0 \n",
" 100.0 \n",
" 0.0 \n",
" 1 \n",
" 0.4 \n",
" NaN \n",
" 0.0 \n",
" 1 \n",
" 1.0 \n",
" 2 \n",
" 3.00 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.00 \n",
" -0.67 \n",
" 0.0 \n",
" 0.3 \n",
" -0.3 \n",
" -26.51 \n",
" -27.19 \n",
" 0.0 \n",
" 0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" NaN \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2021-2022 \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Player Nation Pos Squad Comp \\\n",
"12748 Ãscar de Marcos es ESP DF Athletic Club es La Liga \n",
"12749 Ä°lkay GündoÄan de GER MF Manchester City eng Premier League \n",
"12750 Åukasz FabiaÅski pl POL GK West Ham eng Premier League \n",
"12751 Åukasz Skorupski pl POL GK Bologna it Serie A \n",
"12752 Šime Vrsaljko hr CRO DF Atlético Madrid es La Liga \n",
"\n",
" Age Born MP Starts Min 90s Gls Ast G-PK PK PKatt CrdY \\\n",
"12748 32 1989.0 1 1 52 0.6 0 0 0 0 0 1 \n",
"12749 30 1990.0 3 3 248 2.8 1 0 1 0 0 1 \n",
"12750 36 1985.0 3 3 270 3.0 0 0 0 0 0 0 \n",
"12751 30 1991.0 2 2 180 2.0 0 0 0 0 0 0 \n",
"12752 29 1992.0 1 0 1 0.0 0 0 0 0 0 0 \n",
"\n",
" CrdR Gls.1 Ast.1 G+A G-PK.1 G+A-PK xG npxG xA npxG+xA \\\n",
"12748 0 0.00 0.0 0.00 0.00 0.00 0.0 0.0 0.0 0.0 \n",
"12749 0 0.36 0.0 0.36 0.36 0.36 0.5 0.5 0.7 1.2 \n",
"12750 0 0.00 0.0 0.00 0.00 0.00 0.0 0.0 0.0 0.0 \n",
"12751 0 0.00 0.0 0.00 0.00 0.00 0.0 0.0 0.0 0.0 \n",
"12752 0 0.00 0.0 0.00 0.00 0.00 0.0 0.0 0.0 0.0 \n",
"\n",
" xG.1 xA.1 xG+xA npxG.1 npxG+xA.1 Matches Sh SoT SoT% Sh/90 \\\n",
"12748 0.06 0.00 0.06 0.06 0.06 Matches 1.0 1 100.0 1.73 \n",
"12749 0.18 0.27 0.45 0.18 0.45 Matches 5.0 1 20.0 1.81 \n",
"12750 0.00 0.00 0.00 0.00 0.00 Matches 0.0 0 NaN 0.00 \n",
"12751 0.00 0.00 0.00 0.00 0.00 Matches 0.0 0 NaN 0.00 \n",
"12752 0.00 0.00 0.00 0.00 0.00 Matches 0.0 0 NaN 0.00 \n",
"\n",
" SoT/90 G/Sh G/SoT Dist FK npxG/Sh G-xG np:G-xG Cmp Att \\\n",
"12748 1.73 0.0 0.0 20.1 0.0 0.03 0.0 0.0 21.0 32.0 \n",
"12749 0.36 0.2 1.0 18.7 1.0 0.10 0.5 0.5 171.0 204.0 \n",
"12750 0.00 NaN NaN NaN 0.0 NaN 0.0 0.0 43.0 65.0 \n",
"12751 0.00 NaN NaN NaN 0.0 NaN 0.0 0.0 48.0 72.0 \n",
"12752 0.00 NaN NaN NaN 0.0 NaN 0.0 0.0 1.0 1.0 \n",
"\n",
" Cmp% TotDist PrgDist Cmp.1 Att.1 Cmp%.1 Cmp.2 Att.2 Cmp%.2 \\\n",
"12748 65.6 339.0 139.0 9.0 13.0 69.2 11.0 14.0 78.6 \n",
"12749 83.8 2621.0 469.0 107.0 110.0 97.3 46.0 55.0 83.6 \n",
"12750 66.2 1637.0 1015.0 3.0 3.0 100.0 14.0 14.0 100.0 \n",
"12751 66.7 1200.0 760.0 13.0 13.0 100.0 16.0 16.0 100.0 \n",
"12752 100.0 9.0 8.0 1.0 1.0 100.0 0.0 0.0 NaN \n",
"\n",
" Cmp.3 Att.3 Cmp%.3 A-xA KP 1/3 PPA CrsPA Prog Live Dead \\\n",
"12748 1.0 3.0 33.3 0.0 0.0 1.0 0.0 0.0 3.0 25.0 7.0 \n",
"12749 16.0 32.0 50.0 -0.7 4.0 14.0 5.0 0.0 11.0 182.0 22.0 \n",
"12750 26.0 47.0 55.3 0.0 0.0 1.0 0.0 0.0 0.0 42.0 23.0 \n",
"12751 15.0 39.0 38.5 0.0 0.0 0.0 0.0 0.0 0.0 45.0 27.0 \n",
"12752 0.0 0.0 NaN 0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 \n",
"\n",
" TB Press Sw Crs CK In Out Str Ground Low High Left \\\n",
"12748 0.0 2.0 0.0 3.0 0.0 0.0 0.0 0.0 19.0 8.0 5.0 1.0 \n",
"12749 1.0 12.0 5.0 7.0 16.0 9.0 1.0 1.0 165.0 13.0 26.0 57.0 \n",
"12750 0.0 4.0 5.0 0.0 0.0 0.0 0.0 0.0 26.0 5.0 34.0 3.0 \n",
"12751 0.0 12.0 1.0 0.0 0.0 0.0 0.0 0.0 37.0 5.0 30.0 7.0 \n",
"12752 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0 \n",
"\n",
" Right Head TI Other Off Out.1 Int Blocks SCA SCA90 PassLive \\\n",
"12748 23.0 1.0 7.0 0.0 0.0 0.0 2.0 3.0 0.0 0.0 0.0 \n",
"12749 140.0 6.0 0.0 0.0 1.0 3.0 3.0 4.0 8.0 2.9 6.0 \n",
"12750 51.0 0.0 0.0 9.0 0.0 2.0 0.0 1.0 0.0 0.0 0.0 \n",
"12751 57.0 1.0 0.0 7.0 0.0 6.0 0.0 1.0 0.0 0.0 0.0 \n",
"12752 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 \n",
"\n",
" PassDead Drib Fld Def GCA GCA90 PassLive.1 PassDead.1 Drib.1 \\\n",
"12748 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 \n",
"12749 2.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 \n",
"12750 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 \n",
"12751 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 \n",
"12752 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 \n",
"\n",
" Sh.1 Fld.1 Def.1 Tkl TklW Def 3rd Mid 3rd Att 3rd Tkl.1 Tkl% \\\n",
"12748 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 NaN \n",
"12749 0.0 0.0 0.0 5.0 3.0 0.0 5.0 0.0 2.0 66.7 \n",
"12750 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 NaN \n",
"12751 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 NaN \n",
"12752 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 NaN \n",
"\n",
" Past Succ % Def 3rd.1 Mid 3rd.1 Att 3rd.1 ShSv Pass Tkl+Int \\\n",
"12748 0.0 2.0 50.0 0.0 2.0 2.0 0.0 3.0 0.0 \n",
"12749 1.0 5.0 31.3 2.0 9.0 5.0 1.0 0.0 6.0 \n",
"12750 0.0 0.0 NaN 0.0 0.0 0.0 0.0 0.0 0.0 \n",
"12751 0.0 0.0 NaN 0.0 0.0 0.0 0.0 0.0 0.0 \n",
"12752 0.0 0.0 NaN 0.0 0.0 0.0 0.0 0.0 0.0 \n",
"\n",
" Clr Err Touches Def Pen Att Pen Succ% #Pl Megs Carries CPA \\\n",
"12748 2.0 0.0 38.0 1.0 1.0 NaN 0.0 0.0 17.0 0.0 \n",
"12749 2.0 0.0 229.0 3.0 13.0 75.0 3.0 1.0 166.0 2.0 \n",
"12750 0.0 0.0 67.0 61.0 0.0 NaN 0.0 0.0 30.0 0.0 \n",
"12751 0.0 0.0 76.0 67.0 0.0 NaN 0.0 0.0 38.0 0.0 \n",
"12752 1.0 0.0 2.0 1.0 0.0 NaN 0.0 0.0 0.0 0.0 \n",
"\n",
" Mis Dis Targ Rec Rec% Prog.1 Mn/MP Min% Mn/Start Compl \\\n",
"12748 0.0 0.0 24.0 22.0 91.7 0.0 52 19.3 52.0 0.0 \n",
"12749 1.0 5.0 201.0 183.0 91.0 19.0 83 91.9 83.0 2.0 \n",
"12750 0.0 0.0 32.0 31.0 96.9 0.0 90 100.0 90.0 3.0 \n",
"12751 0.0 0.0 34.0 34.0 100.0 0.0 90 100.0 90.0 2.0 \n",
"12752 0.0 0.0 1.0 1.0 100.0 0.0 1 0.4 NaN 0.0 \n",
"\n",
" Subs Mn/Sub unSub PPM onG onGA +/- +/-90 On-Off onxG onxGA \\\n",
"12748 0 NaN 1 1.00 0.0 0.0 0.0 0.00 -0.41 0.2 0.8 \n",
"12749 0 NaN 0 2.00 8.0 1.0 7.0 2.54 -5.64 7.1 1.4 \n",
"12750 0 NaN 0 2.33 10.0 5.0 5.0 1.67 NaN 6.0 2.9 \n",
"12751 0 NaN 0 2.00 3.0 2.0 1.0 0.50 NaN 1.8 2.6 \n",
"12752 1 1.0 2 3.00 0.0 0.0 0.0 0.00 -0.67 0.0 0.3 \n",
"\n",
" xG+/- xG+/-90 On-Off.1 2CrdY Fls PKwon PKcon OG Recov Won \\\n",
"12748 -0.6 -0.97 -1.36 0.0 1 0.0 0.0 0.0 4.0 1.0 \n",
"12749 5.7 2.07 -2.91 0.0 4 0.0 0.0 0.0 11.0 1.0 \n",
"12750 3.1 1.03 NaN 0.0 0 0.0 0.0 0.0 6.0 0.0 \n",
"12751 -0.8 -0.38 NaN 0.0 0 0.0 0.0 0.0 7.0 0.0 \n",
"12752 -0.3 -26.51 -27.19 0.0 0 0.0 0.0 0.0 0.0 0.0 \n",
"\n",
" Lost Won% League Name League ID Season \n",
"12748 0.0 100.0 Big-5-European-Leagues Big5 2021-2022 \n",
"12749 1.0 50.0 Big-5-European-Leagues Big5 2021-2022 \n",
"12750 0.0 NaN Big-5-European-Leagues Big5 2021-2022 \n",
"12751 0.0 NaN Big-5-European-Leagues Big5 2021-2022 \n",
"12752 0.0 NaN Big-5-European-Leagues Big5 2021-2022 "
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Display the last five rows of the raw DataFrame, df_fbref_outfield_raw\n",
"df_fbref_outfield_raw.tail()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"[shape](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.dtypes.html) returns a tuple representing the dimensionality of the DataFrame."
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"(12753, 164)\n"
]
}
],
"source": [
"# Print the shape of the raw DataFrame, df_fbref_outfield_raw\n",
"print(df_fbref_outfield_raw.shape)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"[columns](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.columns.html) returns the column labels of the DataFrame."
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Index(['Player', 'Nation', 'Pos', 'Squad', 'Comp', 'Age', 'Born', 'MP',\n",
" 'Starts', 'Min',\n",
" ...\n",
" 'PKwon', 'PKcon', 'OG', 'Recov', 'Won', 'Lost', 'Won%', 'League Name',\n",
" 'League ID', 'Season'],\n",
" dtype='object', length=164)"
]
},
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Features (column names) of the raw DataFrame, df_fbref_outfield_raw\n",
"df_fbref_outfield_raw.columns"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The [dtypes](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.dtypes.html) method returns the data types of each attribute in the DataFrame."
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Player object\n",
"Nation object\n",
"Pos object\n",
"Squad object\n",
"Comp object\n",
" ... \n",
"Lost float64\n",
"Won% float64\n",
"League Name object\n",
"League ID object\n",
"Season object\n",
"Length: 164, dtype: object"
]
},
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Data types of the features of the raw DataFrame, df_fbref_outfield_raw\n",
"df_fbref_outfield_raw.dtypes"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Player object\n",
"Nation object\n",
"Pos object\n",
"Squad object\n",
"Comp object\n",
"Age object\n",
"Born float64\n",
"MP int64\n",
"Starts int64\n",
"Min int64\n",
"90s float64\n",
"Gls int64\n",
"Ast int64\n",
"G-PK int64\n",
"PK int64\n",
"PKatt int64\n",
"CrdY int64\n",
"CrdR int64\n",
"Gls.1 float64\n",
"Ast.1 float64\n",
"G+A float64\n",
"G-PK.1 float64\n",
"G+A-PK float64\n",
"xG float64\n",
"npxG float64\n",
"xA float64\n",
"npxG+xA float64\n",
"xG.1 float64\n",
"xA.1 float64\n",
"xG+xA float64\n",
"npxG.1 float64\n",
"npxG+xA.1 float64\n",
"Matches object\n",
"Sh float64\n",
"SoT int64\n",
"SoT% float64\n",
"Sh/90 float64\n",
"SoT/90 float64\n",
"G/Sh float64\n",
"G/SoT float64\n",
"Dist float64\n",
"FK float64\n",
"npxG/Sh float64\n",
"G-xG float64\n",
"np:G-xG float64\n",
"Cmp float64\n",
"Att float64\n",
"Cmp% float64\n",
"TotDist float64\n",
"PrgDist float64\n",
"Cmp.1 float64\n",
"Att.1 float64\n",
"Cmp%.1 float64\n",
"Cmp.2 float64\n",
"Att.2 float64\n",
"Cmp%.2 float64\n",
"Cmp.3 float64\n",
"Att.3 float64\n",
"Cmp%.3 float64\n",
"A-xA float64\n",
"KP float64\n",
"1/3 float64\n",
"PPA float64\n",
"CrsPA float64\n",
"Prog float64\n",
"Live float64\n",
"Dead float64\n",
"TB float64\n",
"Press float64\n",
"Sw float64\n",
"Crs float64\n",
"CK float64\n",
"In float64\n",
"Out float64\n",
"Str float64\n",
"Ground float64\n",
"Low float64\n",
"High float64\n",
"Left float64\n",
"Right float64\n",
"Head float64\n",
"TI float64\n",
"Other float64\n",
"Off float64\n",
"Out.1 float64\n",
"Int float64\n",
"Blocks float64\n",
"SCA float64\n",
"SCA90 float64\n",
"PassLive float64\n",
"PassDead float64\n",
"Drib float64\n",
"Fld float64\n",
"Def float64\n",
"GCA float64\n",
"GCA90 float64\n",
"PassLive.1 float64\n",
"PassDead.1 float64\n",
"Drib.1 float64\n",
"Sh.1 float64\n",
"Fld.1 float64\n",
"Def.1 float64\n",
"Tkl float64\n",
"TklW float64\n",
"Def 3rd float64\n",
"Mid 3rd float64\n",
"Att 3rd float64\n",
"Tkl.1 float64\n",
"Tkl% float64\n",
"Past float64\n",
"Succ float64\n",
"% float64\n",
"Def 3rd.1 float64\n",
"Mid 3rd.1 float64\n",
"Att 3rd.1 float64\n",
"ShSv float64\n",
"Pass float64\n",
"Tkl+Int float64\n",
"Clr float64\n",
"Err float64\n",
"Touches float64\n",
"Def Pen float64\n",
"Att Pen float64\n",
"Succ% float64\n",
"#Pl float64\n",
"Megs float64\n",
"Carries float64\n",
"CPA float64\n",
"Mis float64\n",
"Dis float64\n",
"Targ float64\n",
"Rec float64\n",
"Rec% float64\n",
"Prog.1 float64\n",
"Mn/MP int64\n",
"Min% float64\n",
"Mn/Start float64\n",
"Compl float64\n",
"Subs int64\n",
"Mn/Sub float64\n",
"unSub int64\n",
"PPM float64\n",
"onG float64\n",
"onGA float64\n",
"+/- float64\n",
"+/-90 float64\n",
"On-Off float64\n",
"onxG float64\n",
"onxGA float64\n",
"xG+/- float64\n",
"xG+/-90 float64\n",
"On-Off.1 float64\n",
"2CrdY float64\n",
"Fls int64\n",
"PKwon float64\n",
"PKcon float64\n",
"OG float64\n",
"Recov float64\n",
"Won float64\n",
"Lost float64\n",
"Won% float64\n",
"League Name object\n",
"League ID object\n",
"Season object\n",
"dtype: object\n"
]
}
],
"source": [
"# Displays all one hundered and fifty one columns\n",
"with pd.option_context('display.max_rows', None, 'display.max_columns', None):\n",
" print(df_fbref_outfield_raw.dtypes)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The [info](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.info.html) method to get a quick description of the data, in particular the total number of rows, and each attribute’s type and number of non-null values."
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"RangeIndex: 12753 entries, 0 to 12752\n",
"Columns: 164 entries, Player to Season\n",
"dtypes: float64(139), int64(15), object(10)\n",
"memory usage: 16.0+ MB\n"
]
}
],
"source": [
"# Info for the raw DataFrame, df_fbref_outfield_raw\n",
"df_fbref_outfield_raw.info()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The [describe](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.describe.html) method to show some useful statistics for each numerical column in the DataFrame."
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" Born \n",
" MP \n",
" Starts \n",
" Min \n",
" 90s \n",
" Gls \n",
" Ast \n",
" G-PK \n",
" PK \n",
" PKatt \n",
" CrdY \n",
" CrdR \n",
" Gls.1 \n",
" Ast.1 \n",
" G+A \n",
" G-PK.1 \n",
" G+A-PK \n",
" xG \n",
" npxG \n",
" xA \n",
" npxG+xA \n",
" xG.1 \n",
" xA.1 \n",
" xG+xA \n",
" npxG.1 \n",
" npxG+xA.1 \n",
" Sh \n",
" SoT \n",
" SoT% \n",
" Sh/90 \n",
" SoT/90 \n",
" G/Sh \n",
" G/SoT \n",
" Dist \n",
" FK \n",
" npxG/Sh \n",
" G-xG \n",
" np:G-xG \n",
" Cmp \n",
" Att \n",
" Cmp% \n",
" TotDist \n",
" PrgDist \n",
" Cmp.1 \n",
" Att.1 \n",
" Cmp%.1 \n",
" Cmp.2 \n",
" Att.2 \n",
" Cmp%.2 \n",
" Cmp.3 \n",
" Att.3 \n",
" Cmp%.3 \n",
" A-xA \n",
" KP \n",
" 1/3 \n",
" PPA \n",
" CrsPA \n",
" Prog \n",
" Live \n",
" Dead \n",
" TB \n",
" Press \n",
" Sw \n",
" Crs \n",
" CK \n",
" In \n",
" Out \n",
" Str \n",
" Ground \n",
" Low \n",
" High \n",
" Left \n",
" Right \n",
" Head \n",
" TI \n",
" Other \n",
" Off \n",
" Out.1 \n",
" Int \n",
" Blocks \n",
" SCA \n",
" SCA90 \n",
" PassLive \n",
" PassDead \n",
" Drib \n",
" Fld \n",
" Def \n",
" GCA \n",
" GCA90 \n",
" PassLive.1 \n",
" PassDead.1 \n",
" Drib.1 \n",
" Sh.1 \n",
" Fld.1 \n",
" Def.1 \n",
" Tkl \n",
" TklW \n",
" Def 3rd \n",
" Mid 3rd \n",
" Att 3rd \n",
" Tkl.1 \n",
" Tkl% \n",
" Past \n",
" Succ \n",
" % \n",
" Def 3rd.1 \n",
" Mid 3rd.1 \n",
" Att 3rd.1 \n",
" ShSv \n",
" Pass \n",
" Tkl+Int \n",
" Clr \n",
" Err \n",
" Touches \n",
" Def Pen \n",
" Att Pen \n",
" Succ% \n",
" #Pl \n",
" Megs \n",
" Carries \n",
" CPA \n",
" Mis \n",
" Dis \n",
" Targ \n",
" Rec \n",
" Rec% \n",
" Prog.1 \n",
" Mn/MP \n",
" Min% \n",
" Mn/Start \n",
" Compl \n",
" Subs \n",
" Mn/Sub \n",
" unSub \n",
" PPM \n",
" onG \n",
" onGA \n",
" +/- \n",
" +/-90 \n",
" On-Off \n",
" onxG \n",
" onxGA \n",
" xG+/- \n",
" xG+/-90 \n",
" On-Off.1 \n",
" 2CrdY \n",
" Fls \n",
" PKwon \n",
" PKcon \n",
" OG \n",
" Recov \n",
" Won \n",
" Lost \n",
" Won% \n",
" \n",
" \n",
" \n",
" \n",
" count \n",
" 12752.000000 \n",
" 12753.000000 \n",
" 12753.000000 \n",
" 12753.000000 \n",
" 12753.000000 \n",
" 12753.000000 \n",
" 12753.000000 \n",
" 12753.000000 \n",
" 12753.000000 \n",
" 12753.000000 \n",
" 12753.000000 \n",
" 12753.000000 \n",
" 12753.000000 \n",
" 12753.000000 \n",
" 12753.000000 \n",
" 12753.000000 \n",
" 12753.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12737.000000 \n",
" 12737.000000 \n",
" 12737.000000 \n",
" 12737.000000 \n",
" 12737.000000 \n",
" 12746.000000 \n",
" 12753.000000 \n",
" 10138.000000 \n",
" 12746.000000 \n",
" 12753.000000 \n",
" 10138.000000 \n",
" 8225.000000 \n",
" 10133.000000 \n",
" 12738.000000 \n",
" 10133.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12671.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12519.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12497.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12106.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12746.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12737.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12737.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12746.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 11000.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12178.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 10479.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12677.000000 \n",
" 12738.000000 \n",
" 12753.000000 \n",
" 12753.000000 \n",
" 8753.000000 \n",
" 11630.000000 \n",
" 12753.000000 \n",
" 7481.000000 \n",
" 12753.000000 \n",
" 12745.00000 \n",
" 12745.000000 \n",
" 12745.000000 \n",
" 12745.000000 \n",
" 12745.000000 \n",
" 12262.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12737.000000 \n",
" 12254.000000 \n",
" 12735.000000 \n",
" 12753.000000 \n",
" 12740.000000 \n",
" 12740.000000 \n",
" 12735.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 12738.000000 \n",
" 11063.000000 \n",
" \n",
" \n",
" mean \n",
" 1993.159896 \n",
" 16.395985 \n",
" 12.677644 \n",
" 1138.251549 \n",
" 12.647526 \n",
" 1.546068 \n",
" 1.062809 \n",
" 1.395828 \n",
" 0.150239 \n",
" 0.191720 \n",
" 2.314044 \n",
" 0.120756 \n",
" 0.114423 \n",
" 0.083227 \n",
" 0.197645 \n",
" 0.105621 \n",
" 0.188841 \n",
" 1.554891 \n",
" 1.407874 \n",
" 1.035045 \n",
" 2.444128 \n",
" 0.133357 \n",
" 0.084876 \n",
" 0.218336 \n",
" 0.124680 \n",
" 0.209666 \n",
" 14.240075 \n",
" 4.745315 \n",
" 29.990906 \n",
" 1.258155 \n",
" 0.397606 \n",
" 0.080747 \n",
" 0.267489 \n",
" 17.437935 \n",
" 0.592322 \n",
" 0.090355 \n",
" -0.006689 \n",
" -0.010009 \n",
" 447.062961 \n",
" 564.930601 \n",
" 76.799219 \n",
" 8853.383577 \n",
" 3025.276888 \n",
" 177.886560 \n",
" 204.142958 \n",
" 86.103027 \n",
" 192.683938 \n",
" 224.686450 \n",
" 82.640618 \n",
" 69.117601 \n",
" 116.401162 \n",
" 58.936759 \n",
" 0.028937 \n",
" 10.368975 \n",
" 33.621291 \n",
" 9.174282 \n",
" 2.507615 \n",
" 38.398807 \n",
" 509.415764 \n",
" 55.514837 \n",
" 1.022845 \n",
" 87.251609 \n",
" 17.115167 \n",
" 14.081359 \n",
" 5.643037 \n",
" 1.500079 \n",
" 1.498665 \n",
" 0.351704 \n",
" 369.486340 \n",
" 76.785053 \n",
" 118.659209 \n",
" 160.727822 \n",
" 335.238342 \n",
" 24.601115 \n",
" 23.666588 \n",
" 7.703329 \n",
" 1.945831 \n",
" 10.686764 \n",
" 10.453603 \n",
" 13.980609 \n",
" 22.444889 \n",
" 1.869379 \n",
" 16.052520 \n",
" 2.042785 \n",
" 1.404224 \n",
" 1.323913 \n",
" 0.488381 \n",
" 2.539410 \n",
" 0.197493 \n",
" 1.722955 \n",
" 0.165175 \n",
" 0.180719 \n",
" 0.211493 \n",
" 0.203564 \n",
" 0.055503 \n",
" 19.751452 \n",
" 12.339322 \n",
" 9.830586 \n",
" 7.575679 \n",
" 2.345188 \n",
" 6.603784 \n",
" 32.810191 \n",
" 12.590674 \n",
" 49.962631 \n",
" 28.184447 \n",
" 58.926127 \n",
" 80.018056 \n",
" 38.607866 \n",
" 0.080311 \n",
" 13.981708 \n",
" 30.742424 \n",
" 26.493327 \n",
" 0.295729 \n",
" 699.200581 \n",
" 72.805856 \n",
" 25.781049 \n",
" 62.029659 \n",
" 12.589889 \n",
" 0.662977 \n",
" 449.787172 \n",
" 4.327602 \n",
" 14.323991 \n",
" 13.159601 \n",
" 528.246585 \n",
" 447.058643 \n",
" 83.774686 \n",
" 44.822892 \n",
" 61.467811 \n",
" 42.113134 \n",
" 80.899120 \n",
" 8.749441 \n",
" 3.718341 \n",
" 20.995455 \n",
" 5.099428 \n",
" 1.31900 \n",
" 17.501373 \n",
" 17.450294 \n",
" 0.051079 \n",
" -0.171789 \n",
" -0.132616 \n",
" 16.840140 \n",
" 16.816643 \n",
" 0.024258 \n",
" -0.087383 \n",
" -0.064823 \n",
" 0.051355 \n",
" 14.524582 \n",
" 0.146075 \n",
" 0.179592 \n",
" 0.046486 \n",
" 103.555974 \n",
" 17.554718 \n",
" 17.554247 \n",
" 45.919470 \n",
" \n",
" \n",
" std \n",
" 4.631008 \n",
" 12.093167 \n",
" 11.458054 \n",
" 999.252046 \n",
" 11.102791 \n",
" 3.181650 \n",
" 1.892183 \n",
" 2.793946 \n",
" 0.717791 \n",
" 0.846067 \n",
" 2.684696 \n",
" 0.389241 \n",
" 0.351589 \n",
" 0.406513 \n",
" 0.550526 \n",
" 0.343205 \n",
" 0.543677 \n",
" 2.830873 \n",
" 2.451141 \n",
" 1.591900 \n",
" 3.690315 \n",
" 0.348900 \n",
" 0.292961 \n",
" 0.469096 \n",
" 0.342051 \n",
" 0.462904 \n",
" 20.168726 \n",
" 7.770815 \n",
" 22.611772 \n",
" 2.626380 \n",
" 0.973985 \n",
" 0.124751 \n",
" 0.274263 \n",
" 5.990028 \n",
" 2.122642 \n",
" 0.064927 \n",
" 1.077713 \n",
" 1.059075 \n",
" 470.932048 \n",
" 567.695767 \n",
" 11.484016 \n",
" 9707.465101 \n",
" 3787.970490 \n",
" 191.574344 \n",
" 214.746190 \n",
" 10.802994 \n",
" 220.313132 \n",
" 245.614851 \n",
" 13.535188 \n",
" 89.168169 \n",
" 151.035091 \n",
" 18.759335 \n",
" 0.918222 \n",
" 14.637183 \n",
" 42.697331 \n",
" 13.302689 \n",
" 4.615683 \n",
" 45.879388 \n",
" 519.113611 \n",
" 86.526555 \n",
" 2.098358 \n",
" 86.776042 \n",
" 22.477628 \n",
" 22.761355 \n",
" 17.404132 \n",
" 5.643226 \n",
" 5.782673 \n",
" 1.474825 \n",
" 398.146641 \n",
" 83.320006 \n",
" 140.651885 \n",
" 278.205977 \n",
" 415.427734 \n",
" 29.198296 \n",
" 57.808694 \n",
" 24.082191 \n",
" 2.624502 \n",
" 11.560058 \n",
" 11.816300 \n",
" 16.315884 \n",
" 28.818554 \n",
" 2.723604 \n",
" 19.925333 \n",
" 5.740192 \n",
" 2.866500 \n",
" 2.418419 \n",
" 0.914358 \n",
" 3.941142 \n",
" 0.537757 \n",
" 2.723373 \n",
" 0.631690 \n",
" 0.601350 \n",
" 0.554358 \n",
" 0.574043 \n",
" 0.249008 \n",
" 22.192385 \n",
" 14.177813 \n",
" 12.259509 \n",
" 9.208998 \n",
" 3.132659 \n",
" 8.110591 \n",
" 22.574603 \n",
" 14.594704 \n",
" 51.228318 \n",
" 12.380946 \n",
" 66.288493 \n",
" 90.445315 \n",
" 53.652503 \n",
" 0.325904 \n",
" 15.224815 \n",
" 34.278908 \n",
" 42.622935 \n",
" 0.684454 \n",
" 671.437057 \n",
" 173.297091 \n",
" 38.522372 \n",
" 23.895624 \n",
" 17.784212 \n",
" 1.407206 \n",
" 449.579862 \n",
" 8.415469 \n",
" 19.384973 \n",
" 17.299691 \n",
" 513.065768 \n",
" 450.649419 \n",
" 16.023577 \n",
" 67.895336 \n",
" 25.384396 \n",
" 31.291341 \n",
" 9.971646 \n",
" 9.997075 \n",
" 4.346272 \n",
" 11.668103 \n",
" 6.536477 \n",
" 0.72385 \n",
" 17.628971 \n",
" 15.819220 \n",
" 12.314645 \n",
" 2.956383 \n",
" 3.317309 \n",
" 15.991853 \n",
" 15.009534 \n",
" 9.155639 \n",
" 1.759572 \n",
" 1.986165 \n",
" 0.230816 \n",
" 15.139819 \n",
" 0.476890 \n",
" 0.472586 \n",
" 0.223919 \n",
" 103.798947 \n",
" 25.840465 \n",
" 23.103518 \n",
" 22.725612 \n",
" \n",
" \n",
" min \n",
" 1977.000000 \n",
" 1.000000 \n",
" 0.000000 \n",
" 1.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" -1.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" -0.280000 \n",
" -0.280000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" -0.330000 \n",
" -1.000000 \n",
" 1.000000 \n",
" 0.000000 \n",
" 0.010000 \n",
" -7.700000 \n",
" -6.900000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" -6.200000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 1.000000 \n",
" 0.000000 \n",
" 1.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.00000 \n",
" 0.000000 \n",
" 0.000000 \n",
" -52.000000 \n",
" -180.000000 \n",
" -179.710000 \n",
" 0.000000 \n",
" 0.000000 \n",
" -43.800000 \n",
" -81.020000 \n",
" -80.990000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" \n",
" \n",
" 25% \n",
" 1990.000000 \n",
" 3.000000 \n",
" 2.000000 \n",
" 200.000000 \n",
" 2.200000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.100000 \n",
" 0.010000 \n",
" 0.000000 \n",
" 0.040000 \n",
" 0.010000 \n",
" 0.040000 \n",
" 1.000000 \n",
" 0.000000 \n",
" 15.400000 \n",
" 0.230000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 13.100000 \n",
" 0.000000 \n",
" 0.050000 \n",
" -0.400000 \n",
" -0.400000 \n",
" 65.000000 \n",
" 86.000000 \n",
" 71.100000 \n",
" 1222.250000 \n",
" 330.000000 \n",
" 25.000000 \n",
" 29.000000 \n",
" 82.000000 \n",
" 25.000000 \n",
" 31.000000 \n",
" 76.200000 \n",
" 7.000000 \n",
" 13.000000 \n",
" 48.300000 \n",
" -0.300000 \n",
" 1.000000 \n",
" 3.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 3.000000 \n",
" 76.000000 \n",
" 5.000000 \n",
" 0.000000 \n",
" 12.000000 \n",
" 2.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 53.000000 \n",
" 11.000000 \n",
" 15.000000 \n",
" 13.000000 \n",
" 35.000000 \n",
" 2.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 1.000000 \n",
" 1.000000 \n",
" 2.000000 \n",
" 2.000000 \n",
" 0.500000 \n",
" 2.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 2.000000 \n",
" 1.000000 \n",
" 1.000000 \n",
" 1.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 19.000000 \n",
" 1.000000 \n",
" 6.000000 \n",
" 23.400000 \n",
" 6.000000 \n",
" 8.000000 \n",
" 3.000000 \n",
" 0.000000 \n",
" 1.000000 \n",
" 3.000000 \n",
" 1.000000 \n",
" 0.000000 \n",
" 112.000000 \n",
" 4.000000 \n",
" 2.000000 \n",
" 50.000000 \n",
" 1.000000 \n",
" 0.000000 \n",
" 68.000000 \n",
" 0.000000 \n",
" 1.000000 \n",
" 1.000000 \n",
" 85.000000 \n",
" 68.000000 \n",
" 75.400000 \n",
" 2.000000 \n",
" 44.000000 \n",
" 12.500000 \n",
" 76.000000 \n",
" 1.000000 \n",
" 1.000000 \n",
" 14.000000 \n",
" 0.000000 \n",
" 0.90000 \n",
" 3.000000 \n",
" 3.000000 \n",
" -5.000000 \n",
" -0.680000 \n",
" -0.630000 \n",
" 2.800000 \n",
" 3.000000 \n",
" -3.800000 \n",
" -0.510000 \n",
" -0.400000 \n",
" 0.000000 \n",
" 2.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 15.000000 \n",
" 1.000000 \n",
" 2.000000 \n",
" 32.800000 \n",
" \n",
" \n",
" 50% \n",
" 1993.000000 \n",
" 16.000000 \n",
" 10.000000 \n",
" 903.000000 \n",
" 10.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 1.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.060000 \n",
" 0.000000 \n",
" 0.060000 \n",
" 0.500000 \n",
" 0.500000 \n",
" 0.400000 \n",
" 1.000000 \n",
" 0.050000 \n",
" 0.050000 \n",
" 0.120000 \n",
" 0.050000 \n",
" 0.120000 \n",
" 6.000000 \n",
" 2.000000 \n",
" 30.000000 \n",
" 0.790000 \n",
" 0.160000 \n",
" 0.040000 \n",
" 0.240000 \n",
" 17.300000 \n",
" 0.000000 \n",
" 0.080000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 283.000000 \n",
" 372.000000 \n",
" 77.900000 \n",
" 5018.500000 \n",
" 1448.000000 \n",
" 113.000000 \n",
" 133.000000 \n",
" 87.500000 \n",
" 107.000000 \n",
" 134.000000 \n",
" 84.600000 \n",
" 31.000000 \n",
" 54.000000 \n",
" 59.200000 \n",
" 0.000000 \n",
" 4.000000 \n",
" 17.000000 \n",
" 4.000000 \n",
" 1.000000 \n",
" 20.000000 \n",
" 338.500000 \n",
" 21.000000 \n",
" 0.000000 \n",
" 61.000000 \n",
" 8.000000 \n",
" 4.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 232.000000 \n",
" 49.000000 \n",
" 67.000000 \n",
" 57.000000 \n",
" 149.000000 \n",
" 13.000000 \n",
" 2.000000 \n",
" 2.000000 \n",
" 1.000000 \n",
" 7.000000 \n",
" 6.000000 \n",
" 8.000000 \n",
" 11.000000 \n",
" 1.550000 \n",
" 8.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 1.000000 \n",
" 0.080000 \n",
" 1.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 11.000000 \n",
" 7.000000 \n",
" 4.000000 \n",
" 4.000000 \n",
" 1.000000 \n",
" 3.000000 \n",
" 33.300000 \n",
" 7.000000 \n",
" 34.000000 \n",
" 28.100000 \n",
" 31.000000 \n",
" 48.000000 \n",
" 14.000000 \n",
" 0.000000 \n",
" 9.000000 \n",
" 18.000000 \n",
" 8.000000 \n",
" 0.000000 \n",
" 501.000000 \n",
" 18.000000 \n",
" 11.000000 \n",
" 62.100000 \n",
" 5.000000 \n",
" 0.000000 \n",
" 314.000000 \n",
" 1.000000 \n",
" 6.000000 \n",
" 6.000000 \n",
" 381.000000 \n",
" 309.500000 \n",
" 89.200000 \n",
" 15.000000 \n",
" 68.000000 \n",
" 38.900000 \n",
" 84.000000 \n",
" 4.000000 \n",
" 2.000000 \n",
" 20.000000 \n",
" 3.000000 \n",
" 1.26000 \n",
" 12.000000 \n",
" 14.000000 \n",
" -1.000000 \n",
" -0.040000 \n",
" -0.010000 \n",
" 12.400000 \n",
" 13.250000 \n",
" -0.400000 \n",
" -0.110000 \n",
" -0.010000 \n",
" 0.000000 \n",
" 10.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 70.000000 \n",
" 7.000000 \n",
" 10.000000 \n",
" 47.500000 \n",
" \n",
" \n",
" 75% \n",
" 1997.000000 \n",
" 27.000000 \n",
" 22.000000 \n",
" 1948.000000 \n",
" 21.600000 \n",
" 2.000000 \n",
" 1.000000 \n",
" 2.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 4.000000 \n",
" 0.000000 \n",
" 0.130000 \n",
" 0.100000 \n",
" 0.270000 \n",
" 0.120000 \n",
" 0.260000 \n",
" 1.700000 \n",
" 1.600000 \n",
" 1.400000 \n",
" 3.100000 \n",
" 0.170000 \n",
" 0.120000 \n",
" 0.300000 \n",
" 0.160000 \n",
" 0.290000 \n",
" 19.000000 \n",
" 6.000000 \n",
" 40.900000 \n",
" 1.800000 \n",
" 0.560000 \n",
" 0.130000 \n",
" 0.410000 \n",
" 21.300000 \n",
" 0.000000 \n",
" 0.120000 \n",
" 0.100000 \n",
" 0.100000 \n",
" 705.000000 \n",
" 922.000000 \n",
" 84.200000 \n",
" 13973.750000 \n",
" 4478.000000 \n",
" 276.000000 \n",
" 321.000000 \n",
" 92.000000 \n",
" 296.000000 \n",
" 351.000000 \n",
" 91.700000 \n",
" 99.000000 \n",
" 167.000000 \n",
" 70.700000 \n",
" 0.200000 \n",
" 15.000000 \n",
" 49.000000 \n",
" 13.000000 \n",
" 3.000000 \n",
" 61.000000 \n",
" 805.750000 \n",
" 60.000000 \n",
" 1.000000 \n",
" 141.000000 \n",
" 25.000000 \n",
" 18.000000 \n",
" 1.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 570.000000 \n",
" 118.000000 \n",
" 176.000000 \n",
" 157.000000 \n",
" 519.000000 \n",
" 38.000000 \n",
" 11.000000 \n",
" 5.000000 \n",
" 3.000000 \n",
" 17.000000 \n",
" 16.000000 \n",
" 21.000000 \n",
" 33.000000 \n",
" 2.600000 \n",
" 24.000000 \n",
" 1.000000 \n",
" 2.000000 \n",
" 2.000000 \n",
" 1.000000 \n",
" 3.000000 \n",
" 0.280000 \n",
" 2.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 31.000000 \n",
" 20.000000 \n",
" 16.000000 \n",
" 12.000000 \n",
" 4.000000 \n",
" 10.000000 \n",
" 45.500000 \n",
" 19.000000 \n",
" 82.000000 \n",
" 33.100000 \n",
" 97.000000 \n",
" 122.000000 \n",
" 55.000000 \n",
" 0.000000 \n",
" 23.000000 \n",
" 49.000000 \n",
" 32.000000 \n",
" 0.000000 \n",
" 1152.750000 \n",
" 64.000000 \n",
" 33.000000 \n",
" 75.000000 \n",
" 17.000000 \n",
" 1.000000 \n",
" 717.000000 \n",
" 5.000000 \n",
" 20.000000 \n",
" 19.000000 \n",
" 846.000000 \n",
" 707.750000 \n",
" 96.400000 \n",
" 58.000000 \n",
" 83.000000 \n",
" 68.200000 \n",
" 89.000000 \n",
" 15.000000 \n",
" 6.000000 \n",
" 26.000000 \n",
" 7.000000 \n",
" 1.75000 \n",
" 28.000000 \n",
" 29.000000 \n",
" 3.000000 \n",
" 0.470000 \n",
" 0.550000 \n",
" 27.700000 \n",
" 27.800000 \n",
" 2.100000 \n",
" 0.380000 \n",
" 0.360000 \n",
" 0.000000 \n",
" 23.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 167.000000 \n",
" 23.000000 \n",
" 25.000000 \n",
" 60.000000 \n",
" \n",
" \n",
" max \n",
" 2005.000000 \n",
" 38.000000 \n",
" 38.000000 \n",
" 3420.000000 \n",
" 38.000000 \n",
" 41.000000 \n",
" 21.000000 \n",
" 33.000000 \n",
" 14.000000 \n",
" 15.000000 \n",
" 17.000000 \n",
" 5.000000 \n",
" 22.500000 \n",
" 30.000000 \n",
" 30.000000 \n",
" 22.500000 \n",
" 30.000000 \n",
" 31.600000 \n",
" 25.800000 \n",
" 18.400000 \n",
" 35.900000 \n",
" 24.040000 \n",
" 25.400000 \n",
" 25.400000 \n",
" 24.040000 \n",
" 25.400000 \n",
" 196.000000 \n",
" 92.000000 \n",
" 100.000000 \n",
" 180.000000 \n",
" 45.000000 \n",
" 1.000000 \n",
" 1.000000 \n",
" 74.300000 \n",
" 47.000000 \n",
" 0.880000 \n",
" 12.600000 \n",
" 12.300000 \n",
" 2864.000000 \n",
" 3229.000000 \n",
" 100.000000 \n",
" 65376.000000 \n",
" 32451.000000 \n",
" 1638.000000 \n",
" 1745.000000 \n",
" 100.000000 \n",
" 1536.000000 \n",
" 1619.000000 \n",
" 100.000000 \n",
" 664.000000 \n",
" 1226.000000 \n",
" 100.000000 \n",
" 8.300000 \n",
" 131.000000 \n",
" 442.000000 \n",
" 145.000000 \n",
" 51.000000 \n",
" 323.000000 \n",
" 3153.000000 \n",
" 718.000000 \n",
" 48.000000 \n",
" 509.000000 \n",
" 227.000000 \n",
" 223.000000 \n",
" 190.000000 \n",
" 85.000000 \n",
" 78.000000 \n",
" 25.000000 \n",
" 2546.000000 \n",
" 625.000000 \n",
" 1136.000000 \n",
" 2608.000000 \n",
" 2900.000000 \n",
" 205.000000 \n",
" 477.000000 \n",
" 269.000000 \n",
" 34.000000 \n",
" 98.000000 \n",
" 140.000000 \n",
" 122.000000 \n",
" 241.000000 \n",
" 90.000000 \n",
" 167.000000 \n",
" 68.000000 \n",
" 39.000000 \n",
" 32.000000 \n",
" 9.000000 \n",
" 43.000000 \n",
" 30.000000 \n",
" 28.000000 \n",
" 9.000000 \n",
" 11.000000 \n",
" 6.000000 \n",
" 7.000000 \n",
" 3.000000 \n",
" 168.000000 \n",
" 114.000000 \n",
" 100.000000 \n",
" 79.000000 \n",
" 29.000000 \n",
" 61.000000 \n",
" 100.000000 \n",
" 126.000000 \n",
" 313.000000 \n",
" 100.000000 \n",
" 469.000000 \n",
" 604.000000 \n",
" 579.000000 \n",
" 5.000000 \n",
" 96.000000 \n",
" 241.000000 \n",
" 368.000000 \n",
" 7.000000 \n",
" 3561.000000 \n",
" 1584.000000 \n",
" 320.000000 \n",
" 100.000000 \n",
" 197.000000 \n",
" 21.000000 \n",
" 2546.000000 \n",
" 109.000000 \n",
" 153.000000 \n",
" 172.000000 \n",
" 3096.000000 \n",
" 2833.000000 \n",
" 100.000000 \n",
" 538.000000 \n",
" 93.000000 \n",
" 100.000000 \n",
" 113.000000 \n",
" 38.000000 \n",
" 30.000000 \n",
" 86.000000 \n",
" 37.000000 \n",
" 3.00000 \n",
" 101.000000 \n",
" 91.000000 \n",
" 76.000000 \n",
" 45.000000 \n",
" 45.340000 \n",
" 89.100000 \n",
" 76.300000 \n",
" 60.500000 \n",
" 38.780000 \n",
" 39.290000 \n",
" 2.000000 \n",
" 98.000000 \n",
" 6.000000 \n",
" 5.000000 \n",
" 4.000000 \n",
" 555.000000 \n",
" 280.000000 \n",
" 290.000000 \n",
" 100.000000 \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Born MP Starts Min 90s \\\n",
"count 12752.000000 12753.000000 12753.000000 12753.000000 12753.000000 \n",
"mean 1993.159896 16.395985 12.677644 1138.251549 12.647526 \n",
"std 4.631008 12.093167 11.458054 999.252046 11.102791 \n",
"min 1977.000000 1.000000 0.000000 1.000000 0.000000 \n",
"25% 1990.000000 3.000000 2.000000 200.000000 2.200000 \n",
"50% 1993.000000 16.000000 10.000000 903.000000 10.000000 \n",
"75% 1997.000000 27.000000 22.000000 1948.000000 21.600000 \n",
"max 2005.000000 38.000000 38.000000 3420.000000 38.000000 \n",
"\n",
" Gls Ast G-PK PK PKatt \\\n",
"count 12753.000000 12753.000000 12753.000000 12753.000000 12753.000000 \n",
"mean 1.546068 1.062809 1.395828 0.150239 0.191720 \n",
"std 3.181650 1.892183 2.793946 0.717791 0.846067 \n",
"min 0.000000 0.000000 -1.000000 0.000000 0.000000 \n",
"25% 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"50% 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"75% 2.000000 1.000000 2.000000 0.000000 0.000000 \n",
"max 41.000000 21.000000 33.000000 14.000000 15.000000 \n",
"\n",
" CrdY CrdR Gls.1 Ast.1 G+A \\\n",
"count 12753.000000 12753.000000 12753.000000 12753.000000 12753.000000 \n",
"mean 2.314044 0.120756 0.114423 0.083227 0.197645 \n",
"std 2.684696 0.389241 0.351589 0.406513 0.550526 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"50% 1.000000 0.000000 0.000000 0.000000 0.060000 \n",
"75% 4.000000 0.000000 0.130000 0.100000 0.270000 \n",
"max 17.000000 5.000000 22.500000 30.000000 30.000000 \n",
"\n",
" G-PK.1 G+A-PK xG npxG xA \\\n",
"count 12753.000000 12753.000000 12738.000000 12738.000000 12738.000000 \n",
"mean 0.105621 0.188841 1.554891 1.407874 1.035045 \n",
"std 0.343205 0.543677 2.830873 2.451141 1.591900 \n",
"min -0.280000 -0.280000 0.000000 0.000000 0.000000 \n",
"25% 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"50% 0.000000 0.060000 0.500000 0.500000 0.400000 \n",
"75% 0.120000 0.260000 1.700000 1.600000 1.400000 \n",
"max 22.500000 30.000000 31.600000 25.800000 18.400000 \n",
"\n",
" npxG+xA xG.1 xA.1 xG+xA npxG.1 \\\n",
"count 12738.000000 12737.000000 12737.000000 12737.000000 12737.000000 \n",
"mean 2.444128 0.133357 0.084876 0.218336 0.124680 \n",
"std 3.690315 0.348900 0.292961 0.469096 0.342051 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 0.100000 0.010000 0.000000 0.040000 0.010000 \n",
"50% 1.000000 0.050000 0.050000 0.120000 0.050000 \n",
"75% 3.100000 0.170000 0.120000 0.300000 0.160000 \n",
"max 35.900000 24.040000 25.400000 25.400000 24.040000 \n",
"\n",
" npxG+xA.1 Sh SoT SoT% Sh/90 \\\n",
"count 12737.000000 12746.000000 12753.000000 10138.000000 12746.000000 \n",
"mean 0.209666 14.240075 4.745315 29.990906 1.258155 \n",
"std 0.462904 20.168726 7.770815 22.611772 2.626380 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 0.040000 1.000000 0.000000 15.400000 0.230000 \n",
"50% 0.120000 6.000000 2.000000 30.000000 0.790000 \n",
"75% 0.290000 19.000000 6.000000 40.900000 1.800000 \n",
"max 25.400000 196.000000 92.000000 100.000000 180.000000 \n",
"\n",
" SoT/90 G/Sh G/SoT Dist FK \\\n",
"count 12753.000000 10138.000000 8225.000000 10133.000000 12738.000000 \n",
"mean 0.397606 0.080747 0.267489 17.437935 0.592322 \n",
"std 0.973985 0.124751 0.274263 5.990028 2.122642 \n",
"min 0.000000 -0.330000 -1.000000 1.000000 0.000000 \n",
"25% 0.000000 0.000000 0.000000 13.100000 0.000000 \n",
"50% 0.160000 0.040000 0.240000 17.300000 0.000000 \n",
"75% 0.560000 0.130000 0.410000 21.300000 0.000000 \n",
"max 45.000000 1.000000 1.000000 74.300000 47.000000 \n",
"\n",
" npxG/Sh G-xG np:G-xG Cmp Att \\\n",
"count 10133.000000 12738.000000 12738.000000 12738.000000 12738.000000 \n",
"mean 0.090355 -0.006689 -0.010009 447.062961 564.930601 \n",
"std 0.064927 1.077713 1.059075 470.932048 567.695767 \n",
"min 0.010000 -7.700000 -6.900000 0.000000 0.000000 \n",
"25% 0.050000 -0.400000 -0.400000 65.000000 86.000000 \n",
"50% 0.080000 0.000000 0.000000 283.000000 372.000000 \n",
"75% 0.120000 0.100000 0.100000 705.000000 922.000000 \n",
"max 0.880000 12.600000 12.300000 2864.000000 3229.000000 \n",
"\n",
" Cmp% TotDist PrgDist Cmp.1 Att.1 \\\n",
"count 12671.000000 12738.000000 12738.000000 12738.000000 12738.000000 \n",
"mean 76.799219 8853.383577 3025.276888 177.886560 204.142958 \n",
"std 11.484016 9707.465101 3787.970490 191.574344 214.746190 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 71.100000 1222.250000 330.000000 25.000000 29.000000 \n",
"50% 77.900000 5018.500000 1448.000000 113.000000 133.000000 \n",
"75% 84.200000 13973.750000 4478.000000 276.000000 321.000000 \n",
"max 100.000000 65376.000000 32451.000000 1638.000000 1745.000000 \n",
"\n",
" Cmp%.1 Cmp.2 Att.2 Cmp%.2 Cmp.3 \\\n",
"count 12519.000000 12738.000000 12738.000000 12497.000000 12738.000000 \n",
"mean 86.103027 192.683938 224.686450 82.640618 69.117601 \n",
"std 10.802994 220.313132 245.614851 13.535188 89.168169 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 82.000000 25.000000 31.000000 76.200000 7.000000 \n",
"50% 87.500000 107.000000 134.000000 84.600000 31.000000 \n",
"75% 92.000000 296.000000 351.000000 91.700000 99.000000 \n",
"max 100.000000 1536.000000 1619.000000 100.000000 664.000000 \n",
"\n",
" Att.3 Cmp%.3 A-xA KP 1/3 \\\n",
"count 12738.000000 12106.000000 12738.000000 12738.000000 12738.000000 \n",
"mean 116.401162 58.936759 0.028937 10.368975 33.621291 \n",
"std 151.035091 18.759335 0.918222 14.637183 42.697331 \n",
"min 0.000000 0.000000 -6.200000 0.000000 0.000000 \n",
"25% 13.000000 48.300000 -0.300000 1.000000 3.000000 \n",
"50% 54.000000 59.200000 0.000000 4.000000 17.000000 \n",
"75% 167.000000 70.700000 0.200000 15.000000 49.000000 \n",
"max 1226.000000 100.000000 8.300000 131.000000 442.000000 \n",
"\n",
" PPA CrsPA Prog Live Dead \\\n",
"count 12738.000000 12738.000000 12738.000000 12738.000000 12738.000000 \n",
"mean 9.174282 2.507615 38.398807 509.415764 55.514837 \n",
"std 13.302689 4.615683 45.879388 519.113611 86.526555 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 0.000000 0.000000 3.000000 76.000000 5.000000 \n",
"50% 4.000000 1.000000 20.000000 338.500000 21.000000 \n",
"75% 13.000000 3.000000 61.000000 805.750000 60.000000 \n",
"max 145.000000 51.000000 323.000000 3153.000000 718.000000 \n",
"\n",
" TB Press Sw Crs CK \\\n",
"count 12738.000000 12738.000000 12738.000000 12746.000000 12738.000000 \n",
"mean 1.022845 87.251609 17.115167 14.081359 5.643037 \n",
"std 2.098358 86.776042 22.477628 22.761355 17.404132 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 0.000000 12.000000 2.000000 0.000000 0.000000 \n",
"50% 0.000000 61.000000 8.000000 4.000000 0.000000 \n",
"75% 1.000000 141.000000 25.000000 18.000000 1.000000 \n",
"max 48.000000 509.000000 227.000000 223.000000 190.000000 \n",
"\n",
" In Out Str Ground Low \\\n",
"count 12738.000000 12738.000000 12738.000000 12738.000000 12738.000000 \n",
"mean 1.500079 1.498665 0.351704 369.486340 76.785053 \n",
"std 5.643226 5.782673 1.474825 398.146641 83.320006 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 0.000000 0.000000 0.000000 53.000000 11.000000 \n",
"50% 0.000000 0.000000 0.000000 232.000000 49.000000 \n",
"75% 0.000000 0.000000 0.000000 570.000000 118.000000 \n",
"max 85.000000 78.000000 25.000000 2546.000000 625.000000 \n",
"\n",
" High Left Right Head TI \\\n",
"count 12738.000000 12738.000000 12738.000000 12738.000000 12738.000000 \n",
"mean 118.659209 160.727822 335.238342 24.601115 23.666588 \n",
"std 140.651885 278.205977 415.427734 29.198296 57.808694 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 15.000000 13.000000 35.000000 2.000000 0.000000 \n",
"50% 67.000000 57.000000 149.000000 13.000000 2.000000 \n",
"75% 176.000000 157.000000 519.000000 38.000000 11.000000 \n",
"max 1136.000000 2608.000000 2900.000000 205.000000 477.000000 \n",
"\n",
" Other Off Out.1 Int Blocks \\\n",
"count 12738.000000 12738.000000 12738.000000 12738.000000 12738.000000 \n",
"mean 7.703329 1.945831 10.686764 10.453603 13.980609 \n",
"std 24.082191 2.624502 11.560058 11.816300 16.315884 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 0.000000 0.000000 1.000000 1.000000 2.000000 \n",
"50% 2.000000 1.000000 7.000000 6.000000 8.000000 \n",
"75% 5.000000 3.000000 17.000000 16.000000 21.000000 \n",
"max 269.000000 34.000000 98.000000 140.000000 122.000000 \n",
"\n",
" SCA SCA90 PassLive PassDead Drib \\\n",
"count 12738.000000 12737.000000 12738.000000 12738.000000 12738.000000 \n",
"mean 22.444889 1.869379 16.052520 2.042785 1.404224 \n",
"std 28.818554 2.723604 19.925333 5.740192 2.866500 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 2.000000 0.500000 2.000000 0.000000 0.000000 \n",
"50% 11.000000 1.550000 8.000000 0.000000 0.000000 \n",
"75% 33.000000 2.600000 24.000000 1.000000 2.000000 \n",
"max 241.000000 90.000000 167.000000 68.000000 39.000000 \n",
"\n",
" Fld Def GCA GCA90 PassLive.1 \\\n",
"count 12738.000000 12738.000000 12738.000000 12737.000000 12738.000000 \n",
"mean 1.323913 0.488381 2.539410 0.197493 1.722955 \n",
"std 2.418419 0.914358 3.941142 0.537757 2.723373 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"50% 0.000000 0.000000 1.000000 0.080000 1.000000 \n",
"75% 2.000000 1.000000 3.000000 0.280000 2.000000 \n",
"max 32.000000 9.000000 43.000000 30.000000 28.000000 \n",
"\n",
" PassDead.1 Drib.1 Sh.1 Fld.1 Def.1 \\\n",
"count 12738.000000 12738.000000 12738.000000 12738.000000 12738.000000 \n",
"mean 0.165175 0.180719 0.211493 0.203564 0.055503 \n",
"std 0.631690 0.601350 0.554358 0.574043 0.249008 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"50% 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"75% 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"max 9.000000 11.000000 6.000000 7.000000 3.000000 \n",
"\n",
" Tkl TklW Def 3rd Mid 3rd Att 3rd \\\n",
"count 12738.000000 12746.000000 12738.000000 12738.000000 12738.000000 \n",
"mean 19.751452 12.339322 9.830586 7.575679 2.345188 \n",
"std 22.192385 14.177813 12.259509 9.208998 3.132659 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 2.000000 1.000000 1.000000 1.000000 0.000000 \n",
"50% 11.000000 7.000000 4.000000 4.000000 1.000000 \n",
"75% 31.000000 20.000000 16.000000 12.000000 4.000000 \n",
"max 168.000000 114.000000 100.000000 79.000000 29.000000 \n",
"\n",
" Tkl.1 Tkl% Past Succ % \\\n",
"count 12738.000000 11000.000000 12738.000000 12738.000000 12178.000000 \n",
"mean 6.603784 32.810191 12.590674 49.962631 28.184447 \n",
"std 8.110591 22.574603 14.594704 51.228318 12.380946 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 0.000000 19.000000 1.000000 6.000000 23.400000 \n",
"50% 3.000000 33.300000 7.000000 34.000000 28.100000 \n",
"75% 10.000000 45.500000 19.000000 82.000000 33.100000 \n",
"max 61.000000 100.000000 126.000000 313.000000 100.000000 \n",
"\n",
" Def 3rd.1 Mid 3rd.1 Att 3rd.1 ShSv Pass \\\n",
"count 12738.000000 12738.000000 12738.000000 12738.000000 12738.000000 \n",
"mean 58.926127 80.018056 38.607866 0.080311 13.981708 \n",
"std 66.288493 90.445315 53.652503 0.325904 15.224815 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 6.000000 8.000000 3.000000 0.000000 1.000000 \n",
"50% 31.000000 48.000000 14.000000 0.000000 9.000000 \n",
"75% 97.000000 122.000000 55.000000 0.000000 23.000000 \n",
"max 469.000000 604.000000 579.000000 5.000000 96.000000 \n",
"\n",
" Tkl+Int Clr Err Touches Def Pen \\\n",
"count 12738.000000 12738.000000 12738.000000 12738.000000 12738.000000 \n",
"mean 30.742424 26.493327 0.295729 699.200581 72.805856 \n",
"std 34.278908 42.622935 0.684454 671.437057 173.297091 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 3.000000 1.000000 0.000000 112.000000 4.000000 \n",
"50% 18.000000 8.000000 0.000000 501.000000 18.000000 \n",
"75% 49.000000 32.000000 0.000000 1152.750000 64.000000 \n",
"max 241.000000 368.000000 7.000000 3561.000000 1584.000000 \n",
"\n",
" Att Pen Succ% #Pl Megs Carries \\\n",
"count 12738.000000 10479.000000 12738.000000 12738.000000 12738.000000 \n",
"mean 25.781049 62.029659 12.589889 0.662977 449.787172 \n",
"std 38.522372 23.895624 17.784212 1.407206 449.579862 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 2.000000 50.000000 1.000000 0.000000 68.000000 \n",
"50% 11.000000 62.100000 5.000000 0.000000 314.000000 \n",
"75% 33.000000 75.000000 17.000000 1.000000 717.000000 \n",
"max 320.000000 100.000000 197.000000 21.000000 2546.000000 \n",
"\n",
" CPA Mis Dis Targ Rec \\\n",
"count 12738.000000 12738.000000 12738.000000 12738.000000 12738.000000 \n",
"mean 4.327602 14.323991 13.159601 528.246585 447.058643 \n",
"std 8.415469 19.384973 17.299691 513.065768 450.649419 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 0.000000 1.000000 1.000000 85.000000 68.000000 \n",
"50% 1.000000 6.000000 6.000000 381.000000 309.500000 \n",
"75% 5.000000 20.000000 19.000000 846.000000 707.750000 \n",
"max 109.000000 153.000000 172.000000 3096.000000 2833.000000 \n",
"\n",
" Rec% Prog.1 Mn/MP Min% Mn/Start \\\n",
"count 12677.000000 12738.000000 12753.000000 12753.000000 8753.000000 \n",
"mean 83.774686 44.822892 61.467811 42.113134 80.899120 \n",
"std 16.023577 67.895336 25.384396 31.291341 9.971646 \n",
"min 0.000000 0.000000 1.000000 0.000000 1.000000 \n",
"25% 75.400000 2.000000 44.000000 12.500000 76.000000 \n",
"50% 89.200000 15.000000 68.000000 38.900000 84.000000 \n",
"75% 96.400000 58.000000 83.000000 68.200000 89.000000 \n",
"max 100.000000 538.000000 93.000000 100.000000 113.000000 \n",
"\n",
" Compl Subs Mn/Sub unSub PPM \\\n",
"count 11630.000000 12753.000000 7481.000000 12753.000000 12745.00000 \n",
"mean 8.749441 3.718341 20.995455 5.099428 1.31900 \n",
"std 9.997075 4.346272 11.668103 6.536477 0.72385 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.00000 \n",
"25% 1.000000 1.000000 14.000000 0.000000 0.90000 \n",
"50% 4.000000 2.000000 20.000000 3.000000 1.26000 \n",
"75% 15.000000 6.000000 26.000000 7.000000 1.75000 \n",
"max 38.000000 30.000000 86.000000 37.000000 3.00000 \n",
"\n",
" onG onGA +/- +/-90 On-Off \\\n",
"count 12745.000000 12745.000000 12745.000000 12745.000000 12262.000000 \n",
"mean 17.501373 17.450294 0.051079 -0.171789 -0.132616 \n",
"std 17.628971 15.819220 12.314645 2.956383 3.317309 \n",
"min 0.000000 0.000000 -52.000000 -180.000000 -179.710000 \n",
"25% 3.000000 3.000000 -5.000000 -0.680000 -0.630000 \n",
"50% 12.000000 14.000000 -1.000000 -0.040000 -0.010000 \n",
"75% 28.000000 29.000000 3.000000 0.470000 0.550000 \n",
"max 101.000000 91.000000 76.000000 45.000000 45.340000 \n",
"\n",
" onxG onxGA xG+/- xG+/-90 On-Off.1 \\\n",
"count 12738.000000 12738.000000 12738.000000 12737.000000 12254.000000 \n",
"mean 16.840140 16.816643 0.024258 -0.087383 -0.064823 \n",
"std 15.991853 15.009534 9.155639 1.759572 1.986165 \n",
"min 0.000000 0.000000 -43.800000 -81.020000 -80.990000 \n",
"25% 2.800000 3.000000 -3.800000 -0.510000 -0.400000 \n",
"50% 12.400000 13.250000 -0.400000 -0.110000 -0.010000 \n",
"75% 27.700000 27.800000 2.100000 0.380000 0.360000 \n",
"max 89.100000 76.300000 60.500000 38.780000 39.290000 \n",
"\n",
" 2CrdY Fls PKwon PKcon OG \\\n",
"count 12735.000000 12753.000000 12740.000000 12740.000000 12735.000000 \n",
"mean 0.051355 14.524582 0.146075 0.179592 0.046486 \n",
"std 0.230816 15.139819 0.476890 0.472586 0.223919 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 0.000000 2.000000 0.000000 0.000000 0.000000 \n",
"50% 0.000000 10.000000 0.000000 0.000000 0.000000 \n",
"75% 0.000000 23.000000 0.000000 0.000000 0.000000 \n",
"max 2.000000 98.000000 6.000000 5.000000 4.000000 \n",
"\n",
" Recov Won Lost Won% \n",
"count 12738.000000 12738.000000 12738.000000 11063.000000 \n",
"mean 103.555974 17.554718 17.554247 45.919470 \n",
"std 103.798947 25.840465 23.103518 22.725612 \n",
"min 0.000000 0.000000 0.000000 0.000000 \n",
"25% 15.000000 1.000000 2.000000 32.800000 \n",
"50% 70.000000 7.000000 10.000000 47.500000 \n",
"75% 167.000000 23.000000 25.000000 60.000000 \n",
"max 555.000000 280.000000 290.000000 100.000000 "
]
},
"execution_count": 18,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Description of the raw DataFrame, df_fbref_outfield_raw, showing some summary statistics for each numberical column in the DataFrame\n",
"df_fbref_outfield_raw.describe()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Next, we will check to see how many missing values we have i.e. the number of NULL values in the dataset, and in what features these missing values are located. This can be plotted nicely using the [missingno](https://pypi.org/project/missingno/) library (pip install missingno)."
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
""
]
},
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABuoAAAGdCAYAAAD0cSXAAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8rg+JYAAAACXBIWXMAAAsTAAALEwEAmpwYAABDEUlEQVR4nO3deZQcZbk/8GcyJAESJMBFFKKgEREBaRWIgOAEFNlEZFGUJfmJCMjicOLCLpvLFdSRVZA1QVEJSBRUopjxIrKqrQgSJUhYhKAEkCRM1vn94U1uYqa7azI1VdXVn885niNTz1R9M1PdU9VPve/b1tvb2xsAAAAAAABApobkHQAAAAAAAABakUYdAAAAAAAA5ECjDgAAAAAAAHKgUQcAAAAAAAA50KgDAAAAAACAHGjUAQAAAAAAQA5aolE3e/bseOc73xnXXntt3lEAAAAAAAAgIlqgUTdv3rw44YQTYu7cuXlHAQAAAAAAgOVK3ah7+umn4/DDD48//OEPeUcBAAAAAACAlZS2UXfttdfGBz7wgXjkkUfiXe96V95xAAAAAAAAYCWlbdRNmjQpNtlkk7j++uvjgx/8YN5xAAAAAAAAYCVr5B1gsJx99tmx0047RXt7ezz++ON5xwEAAAAAAICVlLZRt8suu+QdAQAAAAAAAGoqbaOuvzo6OhrWdHV1RUREZ2dn09QU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tWccvvU033bRhzYgRIzJIUptGHQAAAJA5DRgAyJa/vYNv1113jeeeey7GjRsX73//+yMi4uyzz46IiHvvvXeV+nPPPTd6enpizTXXjC233DK++tWvatal7Le//W3DmldeeSWDJLW19fY1iWcL6ujoaFiT5pN+Sd8UB1oTkSz3siclssiUNHeWx5M73eMlma6QZLKaHjLt31vWxwMAACA7jT5Hy+Pzg3qZluUp4v0z2UrrPCmzLD+3jkj3M/ciePDBB+O5556Ls846K97//vfH6aefvnzbvffeG0cccUQ89NBDscYa/x5DNW7cuLyisoKvf/3r8fa3vz234xtR1w9pN7Oy0p/ckIYs/6AXrek5GLkbyfJpqGZ9P0maO62btiTHalST5r6KfH4XpaaImeQuXk0RM8ldvJoiZpK7eDVFzCR38WqKmEnu4tXklSlLRRwBlNV9YZHPgWbNnURajegi1Syra/UmZBa22WabiIjo6emJz3/+8/G5z30u9/XPaKytrS3X42vUARARjW80ItJv+jW60EyjcbZsX2llAgAAAGhGPvcYHLNnz44//elPsfvuuy//2pgxY2LRokUxd+7cWH/99RPtZ80114wzzjgjdtxxx4a1qztRYpYTLGadsd73zZkzJz760Y/W3D5y5MjVOmZaNOoAKCwXkAAAAAAU2cyZM+OEE06IO++8MzbYYIOIiHjooYdi/fXXb9ikW3PNNWPBggUxfPjweOtb3xpjx45NNLor7xFgzWbJkiV1t8+fPz+jJH3TqAMAAAAAAFgN22+/fYwZMyZOPvnkOPnkk+OJJ56Ir33ta3HMMcc0/N4zzzwzHn300XjTm94UO+ywQ7S3t2eQuPV8+tOfrrt90aJFGSXpm0YdAAAAAADAahg6dGhcfvnlcc4558TBBx8cI0aMiPHjx8cRRxzR8Ht33HHHRFNdMjDPP/983e1rr712Rkn6plEHAAAAAACwmjbeeOP41re+Vbdm7NixMWPGjIwS0R8LFizI9fgadQAUVqVSie7u7ro11Wo1kywAAED2ktwTAJCMz1mKa+nSpTFlypR4/PHHE39Pb29vRCRbr25Z7erUJ/me/6yv9z191a5OfV/f01ftfffdV/P7lxk+f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x3377xRVXXBFjx46te+x+NermzZsXJ5xwQsydO3eVbfPnz49DDz00HnnkkXj7298e733ve+PZZ5+NadOmxa9//eu45ppr4p3vfGdERHzoQx+KHXbYYZV99Pb2xjXXXBM9PT3LayMiZsyYERERe++9d7zxjW9c5fva29uX//8f/OAHccYZZ8RrXvOa2H///aOnpyduu+226O7ujuuuu26l/QIADAbTiQBAYz4sBIBsuVelFd1yyy2J6mbOnLnSfy9YsCAmTpwYf/3rX5d/benSpXHsscfGeuutFzfddFP8+c9/jpNPPjk222yz2HnnnZfX9fb2xumnnx49PT2Jjp24Uff000/HCSecEA899FCf26+//vp45JFH4vDDD4/TTz99+dfvu+++mDBhQpx11lnx4x//OCIiDjjggD73ceWVV8b8+fPj6KOPXt6djPi/Rt3RRx9dd1Tc3Llz47zzzovRo0fHLbfcEuuss05ERBx22GFx0EEHxZe+9KW46aabkv6TAQBWiw8eAQDSYeRluWV93ZzkXNKkoMzcq9JqZs2aFVOmTOn39z366KMxceLEVdbAu/POO+Pxxx+Pq6++OkaNGhVjxoyJ++67L37/+9+v1Ki74YYbYsmSJYmPl6hRd+2118aFF14YPT098a53vSvuueeeVWqmTZsWbW1tq7zQd9hhh9hhhx3i7rvvjtmzZ8dGG23U5zEee+yx6Orqis022yyOP/74lbbNmDEjhg4dGmPGjKmb85FHHolXv/rVceihhy5v0kVEvOUtb4nNN988HnrooVi4cGGfQxgBWl3WT1UlveFOoyZpbk+WAQBkRwMGAIDB9J+NtnrGjBkTd999d+y4447xwAMPxM477xwnnHBCVCqV5TX33HNPjB07NkaNGrX8a+ecc85K+3nmmWfi4osvjsmTJ8fee++d6NiJGnWTJk2KTTbZJM4+++x4/PHH+2zUfeQjH4n3ve99MXLkyFW2LWuMzZs3r+YxLrjggli0aFGceuqpqzTSZsyYEW94wxti6NChdXNut9128Ytf/GKVry9YsCD+/ve/x7rrrqtJB1BDo6eqItJ9sirJU1wr/iFc3f0s21damQAASIdrL5JwngAAq2uzzTaL3XffPe64446GtTNnzoxzzz03fvKTn8QhhxzSZ80TTzwRG2+8cXzjG9+IW265JUaOHBkTJkyIgw8+eHnNmWeeGePHj49NN900cc5Ejbqzzz47dtppp2hvb4/HH3+8z5oVg6xozpw58cADD8Taa68do0eP7rPmd7/7Xdxxxx2x3XbbxXve856Vts2fPz+efPLJGDt2bJx99tnxq1/9Kv75z3/GmDFj4v/9v/8X++23X83cCxcujEceeSS+8Y1vxIsvvhif//znk/xzAVpSUUfUpbEfI+oAAABodc16z9usuYFi+Pvf/5649pVXXqm7fd68eTF16tTYY4894pJLLomHH344zjnnnFhvvfXive99b9xyyy3x3HPPxZFHHtmvjG29/Rn7FxE333xznHLKKXHKKafEhAkTGtafcsopcfPNN8dHP/rROOuss/qsOf744+PnP/95XHbZZbHbbruttK1arcZHPvKRiIjYYostYuedd44XXnghfvnLX8ZLL70Uxx13XJx44omr7HPx4sWxzTbbxNKlSyMi4ogjjojTTjutP/9UAAAAAAAASmjSpElx7bXXrjRF5vTp01eq2WKLLeKaa66JnXbaKY488sj429/+Fj//+c+jvb09Iv499eWsWbPiv//7v+MDH/hAXHHFFbHNNtvE4sWLY6uttopJkybF2LFj6+ZINKJudV166aVx8803xyabbBInnXRSnzV///vf45e//GW88Y1vjHHjxq2y/eWXX443vOENsfPOO8dpp50WQ4YMiYiI2bNnx0c/+tG49NJLY4899oi3vOUtK33f3Llz46CDDorhw4dHd3d3TJo0KXp6euKcc86Jtra29P+xAAAAAAAANIUjjjgijjjiiMT1r371q2Pp0qXLm3QREW94wxvi7rvvjjvvvDNeeOGFVfZ31FFHxac+9ak45phjau530Bp13/zmN+PSSy+NUaNGxeWXXx7rrrtun3U/+tGPYsmSJXHQQQf12UDbZZdd4mc/+9kqX99oo43iuOOOi1NPPTVuu+22VRp1o0aNinPPPTciIiZOnBif/OQn4wc/+EHstNNOsddee6XwLwQAAAAAAKAVvP3tb49vfvObsWjRohg6dGhERDz66KOxySabxPve9754xzvesbx2yZIlsddee8V5550Xu+66a939Dkk76JIlS+K0006LSy+9NDbYYIO47rrrYvPNN69Z/8tf/jIiIt7//vf3+1hbbbVVREQ89dRTdevWWmut5QsPJ1k0EAAAAAAAAJbZe++9Y4011ojTTz89/va3v8XUqVPj5ptvjo997GMxcuTI2HTTTZf/7/Wvf31E/HvQ2ahRo+ruN9VG3cKFC+O4446LKVOmxCabbBLf/e53VxnptqI5c+bEH//4x9hqq61i9OjRfdY88cQTcffdd/e5iF9PT09ERAwfPjwiIp588sn46U9/GnPmzFmldpNNNomIiBdeeKHf/y4AAAAAAABa18iRI+Oaa66J2bNnx3777Rff/OY348wzz4zddtttQPtNberL3t7emDhxYkyfPj0233zzuOqqq2KjjTaq+z1//OMfo7e3N7bbbruaNRdffHFMnTo1Lrroothjjz1W2vbb3/42IiK23nrriIi49dZbo6urK04//fQ4/PDDV6p95JFHIiKWdzEBAAAAAACglhkzZqz032984xvj2muvbfh9a6yxxirfW0tqI+omT54c06ZNi0033TQmTZrUsEkXEfHwww9HRMQ222xTs2bPPfeMiIhLLrkk5s+fv/zrjz32WFxxxRWx7rrrxr777hsREXvssUe0t7fHt7/97ZVG1c2ZMycuuOCCaGtriw996EOr9e8DAAAAAACANKUyom7hwoVx6aWXRkTEFltsEd/5znf6rDvkkENiww03XP7fTz75ZEREbLrppjX3vdtuu8W+++4bt956a+y7776x2267xb/+9a/4+c9/HgsXLoyLLrpo+fyeY8aMiU996lNx0UUXxQc+8IF4//vfH4sWLYo77rgjnn/++Zg4cWK87W1vS+OfDAAAAAAAAAOSSqNu5syZy9d+mzZtWkybNq3Puve+970rNeqWfU+j0Xfnn39+bLvttnHjjTfG9773vVhrrbVihx12iOOOO26Vxtvxxx+/fOjhlClTor29Pbbeeuv44he/GOPGjRvIPxMAAAAAAABS09bb29ubdwgAAAAAAABoNamtUQcAAAAAAAAkp1EHAAAAAAAAOdCoAwAAAAAAgBxo1AEAAAAAAEAONOoAAAAAAAAgBxp1AAAAAAAAkAONOgAAAAAAAMiBRh0AAAAAAADkQKMOAAAAAAAAcvD/AWJBEFvY9GSAAAAAAElFTkSuQmCC\n",
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# Plot visualisation of the missing values for each feature of the raw DataFrame, df_fbref_outfield_raw\n",
"msno.matrix(df_fbref_outfield_raw, figsize = (30, 7))"
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Nation 1\n",
"Pos 1\n",
"Born 1\n",
"xG 15\n",
"npxG 15\n",
" ... \n",
"OG 18\n",
"Recov 15\n",
"Won 15\n",
"Lost 15\n",
"Won% 1690\n",
"Length: 133, dtype: int64"
]
},
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Counts of missing values\n",
"null_value_stats = df_fbref_outfield_raw.isnull().sum(axis=0)\n",
"null_value_stats[null_value_stats != 0]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The visualisation shows us very quickly that there are missing values in the dataset but as this data is scraped, this fine at this stage."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"### 3.3. Goalkeepers "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### 3.3.1. Data Dictionary \n",
"The raw dataset has one hundred and eighty eight features (columns) with the following definitions and data types:\n",
"\n",
"| Variable | Data Type | Description |\n",
"|------|-----|-----|\n",
"| `squad` | object | Squad name e.g. Arsenal |\n",
"| `players_used` | float64 | Number of Players used in Games |\n",
"| `possession` | float64 | Percentage of time with possession of the ball |\n",
"\n",
"\n",
" \n",
"\n",
"The features will be cleaned, converted and also additional features will be created in the [Data Engineering](#section4) section (Section 4)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"#### 3.3.2. Import CSV files as pandas DataFrames "
]
},
{
"cell_type": "code",
"execution_count": 21,
"metadata": {},
"outputs": [],
"source": [
"# Import DataFrame as a CSV file\n",
"df_fbref_goalkeeper_raw = pd.read_csv(data_dir_fbref + f'/raw/goalkeeper/fbref_goalkeeper_stats_combined_latest.csv')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"#### 3.3.3. Preliminary Data Handling "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"##### 3.3.3.1. Summary Report \n",
"Initial step of the data handling and Exploratory Data Analysis (EDA) is to create a quick summary report of the dataset using [pandas Profiling Report](https://github.com/pandas-profiling/pandas-profiling)."
]
},
{
"cell_type": "code",
"execution_count": 22,
"metadata": {},
"outputs": [],
"source": [
"# Summary of the data using pandas Profiling Report\n",
"#pp.ProfileReport(df_fbref_goalkeeper_raw)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"##### 3.3.3.2. Further Inspection \n",
"The following commands go into more bespoke summary of the dataset. Some of the commands include content covered in the [pandas Profiling](https://github.com/pandas-profiling/pandas-profiling) summary above, but using the standard [pandas](https://pandas.pydata.org/) functions and methods that most peoplem will be more familiar with.\n",
"\n",
"First check the quality of the dataset by looking first and last rows in pandas using the [head()](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.head.html) and [tail()](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.tail.html) methods."
]
},
{
"cell_type": "code",
"execution_count": 23,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" Player \n",
" Nation \n",
" Pos \n",
" Squad \n",
" Comp \n",
" Age \n",
" Born \n",
" MP \n",
" Starts \n",
" Min \n",
" 90s \n",
" GA \n",
" GA90 \n",
" SoTA \n",
" Saves \n",
" Save% \n",
" W \n",
" D \n",
" L \n",
" CS \n",
" CS% \n",
" PKatt \n",
" PKA \n",
" PKsv \n",
" PKm \n",
" Save%.1 \n",
" Matches \n",
" FK \n",
" CK \n",
" OG \n",
" PSxG \n",
" PSxG/SoT \n",
" PSxG+/- \n",
" /90 \n",
" Cmp \n",
" Att \n",
" Cmp% \n",
" Att.1 \n",
" Thr \n",
" Launch% \n",
" AvgLen \n",
" Att.2 \n",
" Launch%.1 \n",
" AvgLen.1 \n",
" Opp \n",
" Stp \n",
" Stp% \n",
" #OPA \n",
" #OPA/90 \n",
" AvgDist \n",
" Gls \n",
" Ast \n",
" G-PK \n",
" PK \n",
" CrdY \n",
" CrdR \n",
" Gls.1 \n",
" Ast.1 \n",
" G+A \n",
" G-PK.1 \n",
" G+A-PK \n",
" xG \n",
" npxG \n",
" xA \n",
" npxG+xA \n",
" xG.1 \n",
" xA.1 \n",
" xG+xA \n",
" npxG.1 \n",
" npxG+xA.1 \n",
" Mn/MP \n",
" Min% \n",
" Mn/Start \n",
" Compl \n",
" Subs \n",
" Mn/Sub \n",
" unSub \n",
" PPM \n",
" onG \n",
" onGA \n",
" +/- \n",
" +/-90 \n",
" On-Off \n",
" onxG \n",
" onxGA \n",
" xG+/- \n",
" xG+/-90 \n",
" On-Off.1 \n",
" 2CrdY \n",
" Fls \n",
" Fld \n",
" Off \n",
" Crs \n",
" Int \n",
" TklW \n",
" PKwon \n",
" PKcon \n",
" Recov \n",
" Won \n",
" Lost \n",
" Won% \n",
" League Name \n",
" League ID \n",
" Season \n",
" \n",
" \n",
" \n",
" \n",
" 0 \n",
" Abdoulaye Diallo \n",
" sn SEN \n",
" GK \n",
" Rennes \n",
" fr Ligue 1 \n",
" 25 \n",
" 1992 \n",
" 3 \n",
" 3 \n",
" 270.0 \n",
" 3.0 \n",
" 5 \n",
" 1.67 \n",
" 16 \n",
" 12 \n",
" 75.0 \n",
" 0 \n",
" 2 \n",
" 1 \n",
" 0 \n",
" 0.0 \n",
" 1 \n",
" 1 \n",
" 0 \n",
" 0 \n",
" 0.0 \n",
" Matches \n",
" 1 \n",
" 0 \n",
" 0 \n",
" 6.9 \n",
" 0.37 \n",
" 1.9 \n",
" 0.64 \n",
" 9 \n",
" 32 \n",
" 28.1 \n",
" 53 \n",
" 10 \n",
" 37.7 \n",
" 36.2 \n",
" 12 \n",
" 100.0 \n",
" 64.2 \n",
" 19 \n",
" 3 \n",
" 15.8 \n",
" 2 \n",
" 0.67 \n",
" 18.9 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0.00 \n",
" 0.0 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.00 \n",
" 0.0 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 90 \n",
" 7.9 \n",
" NaN \n",
" 3.0 \n",
" 0 \n",
" NaN \n",
" 31 \n",
" 0.67 \n",
" 4 \n",
" 5 \n",
" -1 \n",
" -0.33 \n",
" -0.53 \n",
" 4.8 \n",
" 5.1 \n",
" -0.3 \n",
" -0.08 \n",
" 0.03 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 13 \n",
" 0 \n",
" 0 \n",
" NaN \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2017-2018 \n",
" \n",
" \n",
" 1 \n",
" Adrián \n",
" es ESP \n",
" GK \n",
" West Ham \n",
" eng Premier League \n",
" 30 \n",
" 1987 \n",
" 19 \n",
" 19 \n",
" 1710.0 \n",
" 19.0 \n",
" 29 \n",
" 1.53 \n",
" 96 \n",
" 66 \n",
" 70.8 \n",
" 7 \n",
" 6 \n",
" 6 \n",
" 6 \n",
" 31.6 \n",
" 1 \n",
" 1 \n",
" 0 \n",
" 0 \n",
" 0.0 \n",
" Matches \n",
" 1 \n",
" 8 \n",
" 1 \n",
" 27.3 \n",
" 0.28 \n",
" -0.7 \n",
" -0.04 \n",
" 159 \n",
" 470 \n",
" 33.8 \n",
" 387 \n",
" 47 \n",
" 78.0 \n",
" 54.1 \n",
" 186 \n",
" 90.3 \n",
" 61.9 \n",
" 197 \n",
" 12 \n",
" 6.1 \n",
" 14 \n",
" 0.74 \n",
" 13.9 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 2 \n",
" 0 \n",
" 0.00 \n",
" 0.0 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.00 \n",
" 0.0 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 90 \n",
" 50.0 \n",
" NaN \n",
" 19.0 \n",
" 0 \n",
" NaN \n",
" 19 \n",
" 1.42 \n",
" 30 \n",
" 29 \n",
" 1 \n",
" 0.05 \n",
" 1.16 \n",
" 21.4 \n",
" 30.3 \n",
" -8.9 \n",
" -0.47 \n",
" 0.08 \n",
" 0 \n",
" 0 \n",
" 3 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 116 \n",
" 0 \n",
" 0 \n",
" NaN \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2017-2018 \n",
" \n",
" \n",
" 2 \n",
" Alban Lafont \n",
" fr FRA \n",
" GK \n",
" Toulouse \n",
" fr Ligue 1 \n",
" 18 \n",
" 1999 \n",
" 38 \n",
" 38 \n",
" 3420.0 \n",
" 38.0 \n",
" 54 \n",
" 1.42 \n",
" 161 \n",
" 113 \n",
" 70.2 \n",
" 9 \n",
" 10 \n",
" 19 \n",
" 12 \n",
" 31.6 \n",
" 6 \n",
" 6 \n",
" 0 \n",
" 0 \n",
" 0.0 \n",
" Matches \n",
" 3 \n",
" 9 \n",
" 0 \n",
" 52.6 \n",
" 0.30 \n",
" -1.4 \n",
" -0.04 \n",
" 239 \n",
" 615 \n",
" 38.9 \n",
" 793 \n",
" 115 \n",
" 55.0 \n",
" 44.3 \n",
" 206 \n",
" 86.9 \n",
" 61.5 \n",
" 448 \n",
" 41 \n",
" 9.2 \n",
" 44 \n",
" 1.16 \n",
" 17.1 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 4 \n",
" 0 \n",
" 0.00 \n",
" 0.0 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 0.1 \n",
" 0.1 \n",
" 0.0 \n",
" 0.1 \n",
" 0.00 \n",
" 0.0 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 90 \n",
" 100.0 \n",
" NaN \n",
" 38.0 \n",
" 0 \n",
" NaN \n",
" 0 \n",
" 0.97 \n",
" 38 \n",
" 54 \n",
" -16 \n",
" -0.42 \n",
" NaN \n",
" 46.0 \n",
" 53.3 \n",
" -7.3 \n",
" -0.19 \n",
" NaN \n",
" 0 \n",
" 3 \n",
" 7 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 1 \n",
" 236 \n",
" 0 \n",
" 0 \n",
" NaN \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2017-2018 \n",
" \n",
" \n",
" 3 \n",
" Albano Bizzarri \n",
" ar ARG \n",
" GK \n",
" Udinese \n",
" it Serie A \n",
" 39 \n",
" 1977 \n",
" 32 \n",
" 32 \n",
" 2880.0 \n",
" 32.0 \n",
" 52 \n",
" 1.62 \n",
" 137 \n",
" 91 \n",
" 63.5 \n",
" 11 \n",
" 4 \n",
" 17 \n",
" 8 \n",
" 25.0 \n",
" 5 \n",
" 2 \n",
" 2 \n",
" 1 \n",
" 50.0 \n",
" Matches \n",
" 1 \n",
" 9 \n",
" 4 \n",
" 42.0 \n",
" 0.29 \n",
" -6.0 \n",
" -0.19 \n",
" 262 \n",
" 612 \n",
" 42.8 \n",
" 774 \n",
" 135 \n",
" 52.5 \n",
" 41.1 \n",
" 271 \n",
" 76.0 \n",
" 53.2 \n",
" 306 \n",
" 26 \n",
" 8.5 \n",
" 13 \n",
" 0.41 \n",
" 13.0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 1 \n",
" 0.00 \n",
" 0.0 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.00 \n",
" 0.0 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 90 \n",
" 84.2 \n",
" NaN \n",
" 31.0 \n",
" 0 \n",
" NaN \n",
" 5 \n",
" 1.16 \n",
" 41 \n",
" 52 \n",
" -11 \n",
" -0.34 \n",
" 0.32 \n",
" 37.1 \n",
" 42.6 \n",
" -5.5 \n",
" -0.17 \n",
" 0.11 \n",
" 0 \n",
" 2 \n",
" 3 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 186 \n",
" 0 \n",
" 0 \n",
" NaN \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2017-2018 \n",
" \n",
" \n",
" 4 \n",
" Alberto Brignoli \n",
" it ITA \n",
" GK \n",
" Benevento \n",
" it Serie A \n",
" 25 \n",
" 1991 \n",
" 13 \n",
" 11 \n",
" 1126.0 \n",
" 12.5 \n",
" 31 \n",
" 2.48 \n",
" 71 \n",
" 42 \n",
" 59.2 \n",
" 1 \n",
" 2 \n",
" 10 \n",
" 2 \n",
" 18.2 \n",
" 4 \n",
" 2 \n",
" 0 \n",
" 2 \n",
" 0.0 \n",
" Matches \n",
" 0 \n",
" 6 \n",
" 0 \n",
" 29.0 \n",
" 0.40 \n",
" -2.0 \n",
" -0.16 \n",
" 92 \n",
" 266 \n",
" 34.6 \n",
" 374 \n",
" 61 \n",
" 51.3 \n",
" 43.2 \n",
" 103 \n",
" 71.8 \n",
" 56.1 \n",
" 144 \n",
" 25 \n",
" 17.4 \n",
" 16 \n",
" 1.28 \n",
" 17.0 \n",
" 1 \n",
" 0 \n",
" 1 \n",
" 0 \n",
" 2 \n",
" 0 \n",
" 0.08 \n",
" 0.0 \n",
" 0.08 \n",
" 0.08 \n",
" 0.08 \n",
" 0.1 \n",
" 0.1 \n",
" 0.0 \n",
" 0.1 \n",
" 0.01 \n",
" 0.0 \n",
" 0.01 \n",
" 0.01 \n",
" 0.01 \n",
" 87 \n",
" 32.9 \n",
" NaN \n",
" 11.0 \n",
" 2 \n",
" NaN \n",
" 25 \n",
" 0.38 \n",
" 14 \n",
" 31 \n",
" -17 \n",
" -1.36 \n",
" -0.02 \n",
" 13.3 \n",
" 25.5 \n",
" -12.2 \n",
" -0.97 \n",
" -0.05 \n",
" 0 \n",
" 3 \n",
" 1 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 1 \n",
" 59 \n",
" 0 \n",
" 0 \n",
" NaN \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2017-2018 \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Player Nation Pos Squad Comp Age Born MP \\\n",
"0 Abdoulaye Diallo sn SEN GK Rennes fr Ligue 1 25 1992 3 \n",
"1 Adrián es ESP GK West Ham eng Premier League 30 1987 19 \n",
"2 Alban Lafont fr FRA GK Toulouse fr Ligue 1 18 1999 38 \n",
"3 Albano Bizzarri ar ARG GK Udinese it Serie A 39 1977 32 \n",
"4 Alberto Brignoli it ITA GK Benevento it Serie A 25 1991 13 \n",
"\n",
" Starts Min 90s GA GA90 SoTA Saves Save% W D L CS CS% \\\n",
"0 3 270.0 3.0 5 1.67 16 12 75.0 0 2 1 0 0.0 \n",
"1 19 1710.0 19.0 29 1.53 96 66 70.8 7 6 6 6 31.6 \n",
"2 38 3420.0 38.0 54 1.42 161 113 70.2 9 10 19 12 31.6 \n",
"3 32 2880.0 32.0 52 1.62 137 91 63.5 11 4 17 8 25.0 \n",
"4 11 1126.0 12.5 31 2.48 71 42 59.2 1 2 10 2 18.2 \n",
"\n",
" PKatt PKA PKsv PKm Save%.1 Matches FK CK OG PSxG PSxG/SoT \\\n",
"0 1 1 0 0 0.0 Matches 1 0 0 6.9 0.37 \n",
"1 1 1 0 0 0.0 Matches 1 8 1 27.3 0.28 \n",
"2 6 6 0 0 0.0 Matches 3 9 0 52.6 0.30 \n",
"3 5 2 2 1 50.0 Matches 1 9 4 42.0 0.29 \n",
"4 4 2 0 2 0.0 Matches 0 6 0 29.0 0.40 \n",
"\n",
" PSxG+/- /90 Cmp Att Cmp% Att.1 Thr Launch% AvgLen Att.2 \\\n",
"0 1.9 0.64 9 32 28.1 53 10 37.7 36.2 12 \n",
"1 -0.7 -0.04 159 470 33.8 387 47 78.0 54.1 186 \n",
"2 -1.4 -0.04 239 615 38.9 793 115 55.0 44.3 206 \n",
"3 -6.0 -0.19 262 612 42.8 774 135 52.5 41.1 271 \n",
"4 -2.0 -0.16 92 266 34.6 374 61 51.3 43.2 103 \n",
"\n",
" Launch%.1 AvgLen.1 Opp Stp Stp% #OPA #OPA/90 AvgDist Gls Ast \\\n",
"0 100.0 64.2 19 3 15.8 2 0.67 18.9 0 0 \n",
"1 90.3 61.9 197 12 6.1 14 0.74 13.9 0 0 \n",
"2 86.9 61.5 448 41 9.2 44 1.16 17.1 0 0 \n",
"3 76.0 53.2 306 26 8.5 13 0.41 13.0 0 0 \n",
"4 71.8 56.1 144 25 17.4 16 1.28 17.0 1 0 \n",
"\n",
" G-PK PK CrdY CrdR Gls.1 Ast.1 G+A G-PK.1 G+A-PK xG npxG xA \\\n",
"0 0 0 0 0 0.00 0.0 0.00 0.00 0.00 0.0 0.0 0.0 \n",
"1 0 0 2 0 0.00 0.0 0.00 0.00 0.00 0.0 0.0 0.0 \n",
"2 0 0 4 0 0.00 0.0 0.00 0.00 0.00 0.1 0.1 0.0 \n",
"3 0 0 0 1 0.00 0.0 0.00 0.00 0.00 0.0 0.0 0.0 \n",
"4 1 0 2 0 0.08 0.0 0.08 0.08 0.08 0.1 0.1 0.0 \n",
"\n",
" npxG+xA xG.1 xA.1 xG+xA npxG.1 npxG+xA.1 Mn/MP Min% Mn/Start \\\n",
"0 0.0 0.00 0.0 0.00 0.00 0.00 90 7.9 NaN \n",
"1 0.0 0.00 0.0 0.00 0.00 0.00 90 50.0 NaN \n",
"2 0.1 0.00 0.0 0.00 0.00 0.00 90 100.0 NaN \n",
"3 0.0 0.00 0.0 0.00 0.00 0.00 90 84.2 NaN \n",
"4 0.1 0.01 0.0 0.01 0.01 0.01 87 32.9 NaN \n",
"\n",
" Compl Subs Mn/Sub unSub PPM onG onGA +/- +/-90 On-Off onxG \\\n",
"0 3.0 0 NaN 31 0.67 4 5 -1 -0.33 -0.53 4.8 \n",
"1 19.0 0 NaN 19 1.42 30 29 1 0.05 1.16 21.4 \n",
"2 38.0 0 NaN 0 0.97 38 54 -16 -0.42 NaN 46.0 \n",
"3 31.0 0 NaN 5 1.16 41 52 -11 -0.34 0.32 37.1 \n",
"4 11.0 2 NaN 25 0.38 14 31 -17 -1.36 -0.02 13.3 \n",
"\n",
" onxGA xG+/- xG+/-90 On-Off.1 2CrdY Fls Fld Off Crs Int TklW \\\n",
"0 5.1 -0.3 -0.08 0.03 0 0 0 0 0 0 0 \n",
"1 30.3 -8.9 -0.47 0.08 0 0 3 0 0 0 0 \n",
"2 53.3 -7.3 -0.19 NaN 0 3 7 0 0 0 0 \n",
"3 42.6 -5.5 -0.17 0.11 0 2 3 0 0 0 0 \n",
"4 25.5 -12.2 -0.97 -0.05 0 3 1 0 0 0 0 \n",
"\n",
" PKwon PKcon Recov Won Lost Won% League Name League ID \\\n",
"0 0 0 13 0 0 NaN Big-5-European-Leagues Big5 \n",
"1 0 0 116 0 0 NaN Big-5-European-Leagues Big5 \n",
"2 0 1 236 0 0 NaN Big-5-European-Leagues Big5 \n",
"3 0 0 186 0 0 NaN Big-5-European-Leagues Big5 \n",
"4 0 1 59 0 0 NaN Big-5-European-Leagues Big5 \n",
"\n",
" Season \n",
"0 2017-2018 \n",
"1 2017-2018 \n",
"2 2017-2018 \n",
"3 2017-2018 \n",
"4 2017-2018 "
]
},
"execution_count": 23,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Display the first five rows of the raw DataFrame, df_fbref_goalkeeper_raw\n",
"df_fbref_goalkeeper_raw.head()"
]
},
{
"cell_type": "code",
"execution_count": 24,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" Player \n",
" Nation \n",
" Pos \n",
" Squad \n",
" Comp \n",
" Age \n",
" Born \n",
" MP \n",
" Starts \n",
" Min \n",
" 90s \n",
" GA \n",
" GA90 \n",
" SoTA \n",
" Saves \n",
" Save% \n",
" W \n",
" D \n",
" L \n",
" CS \n",
" CS% \n",
" PKatt \n",
" PKA \n",
" PKsv \n",
" PKm \n",
" Save%.1 \n",
" Matches \n",
" FK \n",
" CK \n",
" OG \n",
" PSxG \n",
" PSxG/SoT \n",
" PSxG+/- \n",
" /90 \n",
" Cmp \n",
" Att \n",
" Cmp% \n",
" Att.1 \n",
" Thr \n",
" Launch% \n",
" AvgLen \n",
" Att.2 \n",
" Launch%.1 \n",
" AvgLen.1 \n",
" Opp \n",
" Stp \n",
" Stp% \n",
" #OPA \n",
" #OPA/90 \n",
" AvgDist \n",
" Gls \n",
" Ast \n",
" G-PK \n",
" PK \n",
" CrdY \n",
" CrdR \n",
" Gls.1 \n",
" Ast.1 \n",
" G+A \n",
" G-PK.1 \n",
" G+A-PK \n",
" xG \n",
" npxG \n",
" xA \n",
" npxG+xA \n",
" xG.1 \n",
" xA.1 \n",
" xG+xA \n",
" npxG.1 \n",
" npxG+xA.1 \n",
" Mn/MP \n",
" Min% \n",
" Mn/Start \n",
" Compl \n",
" Subs \n",
" Mn/Sub \n",
" unSub \n",
" PPM \n",
" onG \n",
" onGA \n",
" +/- \n",
" +/-90 \n",
" On-Off \n",
" onxG \n",
" onxGA \n",
" xG+/- \n",
" xG+/-90 \n",
" On-Off.1 \n",
" 2CrdY \n",
" Fls \n",
" Fld \n",
" Off \n",
" Crs \n",
" Int \n",
" TklW \n",
" PKwon \n",
" PKcon \n",
" Recov \n",
" Won \n",
" Lost \n",
" Won% \n",
" League Name \n",
" League ID \n",
" Season \n",
" \n",
" \n",
" \n",
" \n",
" 922 \n",
" Yann Sommer \n",
" ch SUI \n",
" GK \n",
" M'Gladbach \n",
" de Bundesliga \n",
" 32 \n",
" 1988 \n",
" 3 \n",
" 3 \n",
" 270.0 \n",
" 3.0 \n",
" 7 \n",
" 2.33 \n",
" 17 \n",
" 11 \n",
" 58.8 \n",
" 0 \n",
" 1 \n",
" 2 \n",
" 0 \n",
" 0.0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" NaN \n",
" Matches \n",
" 0 \n",
" 1 \n",
" 1 \n",
" 7.3 \n",
" 0.43 \n",
" 1.3 \n",
" 0.43 \n",
" 18 \n",
" 49 \n",
" 36.7 \n",
" 89 \n",
" 9 \n",
" 41.6 \n",
" 38.9 \n",
" 25 \n",
" 48.0 \n",
" 41.6 \n",
" 21 \n",
" 2 \n",
" 9.5 \n",
" 2 \n",
" 0.67 \n",
" 13.0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 90 \n",
" 100.0 \n",
" 90.0 \n",
" 3.0 \n",
" 0 \n",
" NaN \n",
" 0 \n",
" 0.33 \n",
" 2 \n",
" 7 \n",
" -5 \n",
" -1.67 \n",
" NaN \n",
" 5.9 \n",
" 6.6 \n",
" -0.8 \n",
" -0.25 \n",
" NaN \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 18 \n",
" 0 \n",
" 0 \n",
" NaN \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2021-2022 \n",
" \n",
" \n",
" 923 \n",
" Yassine Bounou \n",
" ma MAR \n",
" GK \n",
" Sevilla \n",
" es La Liga \n",
" 30 \n",
" 1991 \n",
" 2 \n",
" 2 \n",
" 180.0 \n",
" 2.0 \n",
" 1 \n",
" 0.50 \n",
" 4 \n",
" 3 \n",
" 75.0 \n",
" 1 \n",
" 1 \n",
" 0 \n",
" 1 \n",
" 50.0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" NaN \n",
" Matches \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0.2 \n",
" 0.06 \n",
" -0.8 \n",
" -0.38 \n",
" 6 \n",
" 14 \n",
" 42.9 \n",
" 41 \n",
" 10 \n",
" 22.0 \n",
" 30.1 \n",
" 14 \n",
" 35.7 \n",
" 38.6 \n",
" 14 \n",
" 0 \n",
" 0.0 \n",
" 4 \n",
" 2.00 \n",
" 19.9 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 90 \n",
" 66.7 \n",
" 90.0 \n",
" 2.0 \n",
" 0 \n",
" NaN \n",
" 0 \n",
" 2.00 \n",
" 2 \n",
" 1 \n",
" 1 \n",
" 0.50 \n",
" -2.5 \n",
" 2.4 \n",
" 1.2 \n",
" 1.2 \n",
" 0.62 \n",
" -2.59 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 8 \n",
" 0 \n",
" 0 \n",
" NaN \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2021-2022 \n",
" \n",
" \n",
" 924 \n",
" Ãlex Remiro \n",
" es ESP \n",
" GK \n",
" Real Sociedad \n",
" es La Liga \n",
" 26 \n",
" 1995 \n",
" 3 \n",
" 3 \n",
" 270.0 \n",
" 3.0 \n",
" 4 \n",
" 1.33 \n",
" 9 \n",
" 5 \n",
" 55.6 \n",
" 2 \n",
" 0 \n",
" 1 \n",
" 2 \n",
" 66.7 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" NaN \n",
" Matches \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 3.5 \n",
" 0.39 \n",
" -0.5 \n",
" -0.16 \n",
" 22 \n",
" 38 \n",
" 57.9 \n",
" 70 \n",
" 8 \n",
" 40.0 \n",
" 36.7 \n",
" 18 \n",
" 55.6 \n",
" 47.9 \n",
" 21 \n",
" 3 \n",
" 14.3 \n",
" 2 \n",
" 0.67 \n",
" 18.8 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 90 \n",
" 100.0 \n",
" 90.0 \n",
" 3.0 \n",
" 0 \n",
" NaN \n",
" 0 \n",
" 2.00 \n",
" 4 \n",
" 4 \n",
" 0 \n",
" 0.00 \n",
" NaN \n",
" 3.8 \n",
" 3.4 \n",
" 0.4 \n",
" 0.14 \n",
" NaN \n",
" 0 \n",
" 0 \n",
" 1 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 10 \n",
" 0 \n",
" 0 \n",
" NaN \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2021-2022 \n",
" \n",
" \n",
" 925 \n",
" Åukasz FabiaÅski \n",
" pl POL \n",
" GK \n",
" West Ham \n",
" eng Premier League \n",
" 36 \n",
" 1985 \n",
" 3 \n",
" 3 \n",
" 270.0 \n",
" 3.0 \n",
" 5 \n",
" 1.67 \n",
" 6 \n",
" 1 \n",
" 16.7 \n",
" 2 \n",
" 1 \n",
" 0 \n",
" 0 \n",
" 0.0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" NaN \n",
" Matches \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 3.1 \n",
" 0.52 \n",
" -1.9 \n",
" -0.62 \n",
" 19 \n",
" 40 \n",
" 47.5 \n",
" 45 \n",
" 9 \n",
" 57.8 \n",
" 44.4 \n",
" 20 \n",
" 70.0 \n",
" 48.3 \n",
" 25 \n",
" 2 \n",
" 8.0 \n",
" 0 \n",
" 0.00 \n",
" 13.6 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 90 \n",
" 100.0 \n",
" 90.0 \n",
" 3.0 \n",
" 0 \n",
" NaN \n",
" 0 \n",
" 2.33 \n",
" 10 \n",
" 5 \n",
" 5 \n",
" 1.67 \n",
" NaN \n",
" 6.0 \n",
" 2.9 \n",
" 3.1 \n",
" 1.03 \n",
" NaN \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 6 \n",
" 0 \n",
" 0 \n",
" NaN \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2021-2022 \n",
" \n",
" \n",
" 926 \n",
" Åukasz Skorupski \n",
" pl POL \n",
" GK \n",
" Bologna \n",
" it Serie A \n",
" 30 \n",
" 1991 \n",
" 2 \n",
" 2 \n",
" 180.0 \n",
" 2.0 \n",
" 2 \n",
" 1.00 \n",
" 6 \n",
" 5 \n",
" 83.3 \n",
" 1 \n",
" 1 \n",
" 0 \n",
" 1 \n",
" 50.0 \n",
" 1 \n",
" 1 \n",
" 0 \n",
" 0 \n",
" 0.0 \n",
" Matches \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 2.1 \n",
" 0.29 \n",
" 0.1 \n",
" 0.03 \n",
" 6 \n",
" 28 \n",
" 21.4 \n",
" 52 \n",
" 7 \n",
" 40.4 \n",
" 36.8 \n",
" 20 \n",
" 35.0 \n",
" 34.4 \n",
" 16 \n",
" 1 \n",
" 6.3 \n",
" 0 \n",
" 0.00 \n",
" 11.4 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 90 \n",
" 100.0 \n",
" 90.0 \n",
" 2.0 \n",
" 0 \n",
" NaN \n",
" 0 \n",
" 2.00 \n",
" 3 \n",
" 2 \n",
" 1 \n",
" 0.50 \n",
" NaN \n",
" 1.8 \n",
" 2.6 \n",
" -0.8 \n",
" -0.38 \n",
" NaN \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 7 \n",
" 0 \n",
" 0 \n",
" NaN \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2021-2022 \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Player Nation Pos Squad Comp Age \\\n",
"922 Yann Sommer ch SUI GK M'Gladbach de Bundesliga 32 \n",
"923 Yassine Bounou ma MAR GK Sevilla es La Liga 30 \n",
"924 Ãlex Remiro es ESP GK Real Sociedad es La Liga 26 \n",
"925 Åukasz FabiaÅski pl POL GK West Ham eng Premier League 36 \n",
"926 Åukasz Skorupski pl POL GK Bologna it Serie A 30 \n",
"\n",
" Born MP Starts Min 90s GA GA90 SoTA Saves Save% W D L CS \\\n",
"922 1988 3 3 270.0 3.0 7 2.33 17 11 58.8 0 1 2 0 \n",
"923 1991 2 2 180.0 2.0 1 0.50 4 3 75.0 1 1 0 1 \n",
"924 1995 3 3 270.0 3.0 4 1.33 9 5 55.6 2 0 1 2 \n",
"925 1985 3 3 270.0 3.0 5 1.67 6 1 16.7 2 1 0 0 \n",
"926 1991 2 2 180.0 2.0 2 1.00 6 5 83.3 1 1 0 1 \n",
"\n",
" CS% PKatt PKA PKsv PKm Save%.1 Matches FK CK OG PSxG \\\n",
"922 0.0 0 0 0 0 NaN Matches 0 1 1 7.3 \n",
"923 50.0 0 0 0 0 NaN Matches 0 0 0 0.2 \n",
"924 66.7 0 0 0 0 NaN Matches 0 0 0 3.5 \n",
"925 0.0 0 0 0 0 NaN Matches 0 0 0 3.1 \n",
"926 50.0 1 1 0 0 0.0 Matches 0 0 0 2.1 \n",
"\n",
" PSxG/SoT PSxG+/- /90 Cmp Att Cmp% Att.1 Thr Launch% AvgLen \\\n",
"922 0.43 1.3 0.43 18 49 36.7 89 9 41.6 38.9 \n",
"923 0.06 -0.8 -0.38 6 14 42.9 41 10 22.0 30.1 \n",
"924 0.39 -0.5 -0.16 22 38 57.9 70 8 40.0 36.7 \n",
"925 0.52 -1.9 -0.62 19 40 47.5 45 9 57.8 44.4 \n",
"926 0.29 0.1 0.03 6 28 21.4 52 7 40.4 36.8 \n",
"\n",
" Att.2 Launch%.1 AvgLen.1 Opp Stp Stp% #OPA #OPA/90 AvgDist Gls \\\n",
"922 25 48.0 41.6 21 2 9.5 2 0.67 13.0 0 \n",
"923 14 35.7 38.6 14 0 0.0 4 2.00 19.9 0 \n",
"924 18 55.6 47.9 21 3 14.3 2 0.67 18.8 0 \n",
"925 20 70.0 48.3 25 2 8.0 0 0.00 13.6 0 \n",
"926 20 35.0 34.4 16 1 6.3 0 0.00 11.4 0 \n",
"\n",
" Ast G-PK PK CrdY CrdR Gls.1 Ast.1 G+A G-PK.1 G+A-PK xG npxG \\\n",
"922 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 \n",
"923 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 \n",
"924 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 \n",
"925 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 \n",
"926 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 \n",
"\n",
" xA npxG+xA xG.1 xA.1 xG+xA npxG.1 npxG+xA.1 Mn/MP Min% \\\n",
"922 0.0 0.0 0.0 0.0 0.0 0.0 0.0 90 100.0 \n",
"923 0.0 0.0 0.0 0.0 0.0 0.0 0.0 90 66.7 \n",
"924 0.0 0.0 0.0 0.0 0.0 0.0 0.0 90 100.0 \n",
"925 0.0 0.0 0.0 0.0 0.0 0.0 0.0 90 100.0 \n",
"926 0.0 0.0 0.0 0.0 0.0 0.0 0.0 90 100.0 \n",
"\n",
" Mn/Start Compl Subs Mn/Sub unSub PPM onG onGA +/- +/-90 \\\n",
"922 90.0 3.0 0 NaN 0 0.33 2 7 -5 -1.67 \n",
"923 90.0 2.0 0 NaN 0 2.00 2 1 1 0.50 \n",
"924 90.0 3.0 0 NaN 0 2.00 4 4 0 0.00 \n",
"925 90.0 3.0 0 NaN 0 2.33 10 5 5 1.67 \n",
"926 90.0 2.0 0 NaN 0 2.00 3 2 1 0.50 \n",
"\n",
" On-Off onxG onxGA xG+/- xG+/-90 On-Off.1 2CrdY Fls Fld Off Crs \\\n",
"922 NaN 5.9 6.6 -0.8 -0.25 NaN 0 0 0 0 0 \n",
"923 -2.5 2.4 1.2 1.2 0.62 -2.59 0 0 0 0 0 \n",
"924 NaN 3.8 3.4 0.4 0.14 NaN 0 0 1 0 0 \n",
"925 NaN 6.0 2.9 3.1 1.03 NaN 0 0 0 0 0 \n",
"926 NaN 1.8 2.6 -0.8 -0.38 NaN 0 0 0 0 0 \n",
"\n",
" Int TklW PKwon PKcon Recov Won Lost Won% League Name \\\n",
"922 0 0 0 0 18 0 0 NaN Big-5-European-Leagues \n",
"923 0 0 0 0 8 0 0 NaN Big-5-European-Leagues \n",
"924 0 0 0 0 10 0 0 NaN Big-5-European-Leagues \n",
"925 0 0 0 0 6 0 0 NaN Big-5-European-Leagues \n",
"926 0 0 0 0 7 0 0 NaN Big-5-European-Leagues \n",
"\n",
" League ID Season \n",
"922 Big5 2021-2022 \n",
"923 Big5 2021-2022 \n",
"924 Big5 2021-2022 \n",
"925 Big5 2021-2022 \n",
"926 Big5 2021-2022 "
]
},
"execution_count": 24,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Display the last five rows of the raw DataFrame, df_fbref_goalkeeper_raw\n",
"df_fbref_goalkeeper_raw.tail()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"[shape](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.dtypes.html) returns a tuple representing the dimensionality of the DataFrame."
]
},
{
"cell_type": "code",
"execution_count": 25,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"(927, 104)\n"
]
}
],
"source": [
"# Print the shape of the raw DataFrame, df_fbref_goalkeeper_raw\n",
"print(df_fbref_goalkeeper_raw.shape)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The raw DataFrame has:\n",
"* 744 observations (rows), each observation represents one individual tourist stranded in Peru, and\n",
"* 20 attributes (columns)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"[columns](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.columns.html) returns the column labels of the DataFrame."
]
},
{
"cell_type": "code",
"execution_count": 26,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Index(['Player', 'Nation', 'Pos', 'Squad', 'Comp', 'Age', 'Born', 'MP',\n",
" 'Starts', 'Min',\n",
" ...\n",
" 'TklW', 'PKwon', 'PKcon', 'Recov', 'Won', 'Lost', 'Won%', 'League Name',\n",
" 'League ID', 'Season'],\n",
" dtype='object', length=104)"
]
},
"execution_count": 26,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Features (column names) of the raw DataFrame, df_fbref_goalkeeper_raw\n",
"df_fbref_goalkeeper_raw.columns"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The [dtypes](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.dtypes.html) method returns the data types of each attribute in the DataFrame."
]
},
{
"cell_type": "code",
"execution_count": 27,
"metadata": {
"scrolled": true
},
"outputs": [
{
"data": {
"text/plain": [
"Player object\n",
"Nation object\n",
"Pos object\n",
"Squad object\n",
"Comp object\n",
" ... \n",
"Lost int64\n",
"Won% float64\n",
"League Name object\n",
"League ID object\n",
"Season object\n",
"Length: 104, dtype: object"
]
},
"execution_count": 27,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Data types of the features of the raw DataFrame, df_fbref_goalkeeper_raw\n",
"df_fbref_goalkeeper_raw.dtypes"
]
},
{
"cell_type": "code",
"execution_count": 28,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Player object\n",
"Nation object\n",
"Pos object\n",
"Squad object\n",
"Comp object\n",
"Age int64\n",
"Born int64\n",
"MP int64\n",
"Starts int64\n",
"Min float64\n",
"90s float64\n",
"GA int64\n",
"GA90 float64\n",
"SoTA int64\n",
"Saves int64\n",
"Save% float64\n",
"W int64\n",
"D int64\n",
"L int64\n",
"CS int64\n",
"CS% float64\n",
"PKatt int64\n",
"PKA int64\n",
"PKsv int64\n",
"PKm int64\n",
"Save%.1 float64\n",
"Matches object\n",
"FK int64\n",
"CK int64\n",
"OG int64\n",
"PSxG float64\n",
"PSxG/SoT float64\n",
"PSxG+/- float64\n",
"/90 float64\n",
"Cmp int64\n",
"Att int64\n",
"Cmp% float64\n",
"Att.1 int64\n",
"Thr int64\n",
"Launch% float64\n",
"AvgLen float64\n",
"Att.2 int64\n",
"Launch%.1 float64\n",
"AvgLen.1 float64\n",
"Opp int64\n",
"Stp int64\n",
"Stp% float64\n",
"#OPA int64\n",
"#OPA/90 float64\n",
"AvgDist float64\n",
"Gls int64\n",
"Ast int64\n",
"G-PK int64\n",
"PK int64\n",
"CrdY int64\n",
"CrdR int64\n",
"Gls.1 float64\n",
"Ast.1 float64\n",
"G+A float64\n",
"G-PK.1 float64\n",
"G+A-PK float64\n",
"xG float64\n",
"npxG float64\n",
"xA float64\n",
"npxG+xA float64\n",
"xG.1 float64\n",
"xA.1 float64\n",
"xG+xA float64\n",
"npxG.1 float64\n",
"npxG+xA.1 float64\n",
"Mn/MP int64\n",
"Min% float64\n",
"Mn/Start float64\n",
"Compl float64\n",
"Subs int64\n",
"Mn/Sub float64\n",
"unSub int64\n",
"PPM float64\n",
"onG int64\n",
"onGA int64\n",
"+/- int64\n",
"+/-90 float64\n",
"On-Off float64\n",
"onxG float64\n",
"onxGA float64\n",
"xG+/- float64\n",
"xG+/-90 float64\n",
"On-Off.1 float64\n",
"2CrdY int64\n",
"Fls int64\n",
"Fld int64\n",
"Off int64\n",
"Crs int64\n",
"Int int64\n",
"TklW int64\n",
"PKwon int64\n",
"PKcon int64\n",
"Recov int64\n",
"Won int64\n",
"Lost int64\n",
"Won% float64\n",
"League Name object\n",
"League ID object\n",
"Season object\n",
"dtype: object\n"
]
}
],
"source": [
"# Displays all one hundered and four columns\n",
"with pd.option_context('display.max_rows', None, 'display.max_columns', None):\n",
" print(df_fbref_goalkeeper_raw.dtypes)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The [info](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.info.html) method to get a quick description of the data, in particular the total number of rows, and each attribute’s type and number of non-null values."
]
},
{
"cell_type": "code",
"execution_count": 29,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"RangeIndex: 927 entries, 0 to 926\n",
"Columns: 104 entries, Player to Season\n",
"dtypes: float64(45), int64(50), object(9)\n",
"memory usage: 753.3+ KB\n"
]
}
],
"source": [
"# Info for the raw DataFrame, df_fbref_goalkeeper_raw\n",
"df_fbref_goalkeeper_raw.info()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The [describe](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.describe.html) method to show some useful statistics for each numerical column in the DataFrame."
]
},
{
"cell_type": "code",
"execution_count": 30,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" Age \n",
" Born \n",
" MP \n",
" Starts \n",
" Min \n",
" 90s \n",
" GA \n",
" GA90 \n",
" SoTA \n",
" Saves \n",
" Save% \n",
" W \n",
" D \n",
" L \n",
" CS \n",
" CS% \n",
" PKatt \n",
" PKA \n",
" PKsv \n",
" PKm \n",
" Save%.1 \n",
" FK \n",
" CK \n",
" OG \n",
" PSxG \n",
" PSxG/SoT \n",
" PSxG+/- \n",
" /90 \n",
" Cmp \n",
" Att \n",
" Cmp% \n",
" Att.1 \n",
" Thr \n",
" Launch% \n",
" AvgLen \n",
" Att.2 \n",
" Launch%.1 \n",
" AvgLen.1 \n",
" Opp \n",
" Stp \n",
" Stp% \n",
" #OPA \n",
" #OPA/90 \n",
" AvgDist \n",
" Gls \n",
" Ast \n",
" G-PK \n",
" PK \n",
" CrdY \n",
" CrdR \n",
" Gls.1 \n",
" Ast.1 \n",
" G+A \n",
" G-PK.1 \n",
" G+A-PK \n",
" xG \n",
" npxG \n",
" xA \n",
" npxG+xA \n",
" xG.1 \n",
" xA.1 \n",
" xG+xA \n",
" npxG.1 \n",
" npxG+xA.1 \n",
" Mn/MP \n",
" Min% \n",
" Mn/Start \n",
" Compl \n",
" Subs \n",
" Mn/Sub \n",
" unSub \n",
" PPM \n",
" onG \n",
" onGA \n",
" +/- \n",
" +/-90 \n",
" On-Off \n",
" onxG \n",
" onxGA \n",
" xG+/- \n",
" xG+/-90 \n",
" On-Off.1 \n",
" 2CrdY \n",
" Fls \n",
" Fld \n",
" Off \n",
" Crs \n",
" Int \n",
" TklW \n",
" PKwon \n",
" PKcon \n",
" Recov \n",
" Won \n",
" Lost \n",
" Won% \n",
" \n",
" \n",
" \n",
" \n",
" count \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 925.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 925.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 911.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 903.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 622.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 911.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 920.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 925.000000 \n",
" 925.000000 \n",
" 927.000000 \n",
" 919.000000 \n",
" 919.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 915.000000 \n",
" 927.000000 \n",
" 924.000000 \n",
" 917.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 705.000000 \n",
" 846.000000 \n",
" 927.000000 \n",
" 104.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 765.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 765.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.0 \n",
" 927.000000 \n",
" 927.000000 \n",
" 927.00000 \n",
" 927.000000 \n",
" 57.000000 \n",
" \n",
" \n",
" mean \n",
" 27.891046 \n",
" 1990.585761 \n",
" 16.037756 \n",
" 15.864078 \n",
" 1429.944865 \n",
" 15.856311 \n",
" 21.943905 \n",
" 1.494357 \n",
" 65.274002 \n",
" 45.613808 \n",
" 68.326894 \n",
" 5.930960 \n",
" 3.996764 \n",
" 5.928803 \n",
" 4.296656 \n",
" 25.054596 \n",
" 2.658037 \n",
" 2.064725 \n",
" 0.442287 \n",
" 0.151025 \n",
" 16.671543 \n",
" 0.478964 \n",
" 2.772384 \n",
" 0.642934 \n",
" 20.997627 \n",
" 0.299451 \n",
" -0.269903 \n",
" -0.057584 \n",
" 104.208198 \n",
" 258.993528 \n",
" 40.969348 \n",
" 387.741100 \n",
" 65.857605 \n",
" 46.045838 \n",
" 39.524432 \n",
" 116.710895 \n",
" 62.545702 \n",
" 49.192057 \n",
" 145.062567 \n",
" 11.097087 \n",
" 7.260546 \n",
" 10.186624 \n",
" 0.660108 \n",
" 14.386041 \n",
" 0.004315 \n",
" 0.026969 \n",
" 0.003236 \n",
" 0.001079 \n",
" 0.679612 \n",
" 0.055016 \n",
" 0.000183 \n",
" 0.002255 \n",
" 0.002438 \n",
" 0.000151 \n",
" 0.002406 \n",
" 0.005070 \n",
" 0.003452 \n",
" 0.039159 \n",
" 0.042826 \n",
" 0.000129 \n",
" 0.002244 \n",
" 0.002395 \n",
" 0.000076 \n",
" 0.002352 \n",
" 86.201726 \n",
" 52.877454 \n",
" 89.117730 \n",
" 15.400709 \n",
" 0.168285 \n",
" 42.701923 \n",
" 11.349515 \n",
" 1.301424 \n",
" 21.949299 \n",
" 21.957929 \n",
" -0.008630 \n",
" -0.114175 \n",
" -0.073634 \n",
" 21.076591 \n",
" 21.104746 \n",
" -0.027616 \n",
" -0.081834 \n",
" -0.070405 \n",
" 0.004315 \n",
" 0.387271 \n",
" 2.046386 \n",
" 0.006472 \n",
" 0.008630 \n",
" 0.036677 \n",
" 0.028047 \n",
" 0.0 \n",
" 0.203883 \n",
" 78.856526 \n",
" 0.02589 \n",
" 0.043150 \n",
" 36.842105 \n",
" \n",
" \n",
" std \n",
" 4.750127 \n",
" 4.869455 \n",
" 14.106800 \n",
" 14.204039 \n",
" 1271.607598 \n",
" 14.130571 \n",
" 20.109717 \n",
" 0.847218 \n",
" 59.971343 \n",
" 42.650898 \n",
" 13.616360 \n",
" 6.563495 \n",
" 4.054034 \n",
" 6.030815 \n",
" 4.646165 \n",
" 21.653640 \n",
" 2.897940 \n",
" 2.361525 \n",
" 0.765525 \n",
" 0.395516 \n",
" 23.677082 \n",
" 0.799122 \n",
" 3.051922 \n",
" 0.983015 \n",
" 19.313034 \n",
" 0.085490 \n",
" 3.389201 \n",
" 0.399200 \n",
" 104.670484 \n",
" 260.013457 \n",
" 11.591413 \n",
" 365.260341 \n",
" 63.360527 \n",
" 18.024168 \n",
" 8.203695 \n",
" 108.687936 \n",
" 24.770864 \n",
" 13.184107 \n",
" 134.363922 \n",
" 11.423483 \n",
" 5.051059 \n",
" 11.088721 \n",
" 0.564902 \n",
" 2.648210 \n",
" 0.065582 \n",
" 0.168611 \n",
" 0.056827 \n",
" 0.032844 \n",
" 1.011726 \n",
" 0.228135 \n",
" 0.003129 \n",
" 0.024464 \n",
" 0.024646 \n",
" 0.002972 \n",
" 0.024630 \n",
" 0.058103 \n",
" 0.025219 \n",
" 0.115010 \n",
" 0.119709 \n",
" 0.002022 \n",
" 0.010492 \n",
" 0.010713 \n",
" 0.001182 \n",
" 0.010561 \n",
" 12.575787 \n",
" 39.271308 \n",
" 6.025894 \n",
" 14.010358 \n",
" 0.420515 \n",
" 22.928712 \n",
" 12.663137 \n",
" 0.769184 \n",
" 22.037241 \n",
" 20.050890 \n",
" 15.247559 \n",
" 1.323327 \n",
" 1.427682 \n",
" 20.177644 \n",
" 19.201389 \n",
" 11.398664 \n",
" 1.063579 \n",
" 1.104272 \n",
" 0.065582 \n",
" 0.707847 \n",
" 2.491672 \n",
" 0.080234 \n",
" 0.092546 \n",
" 0.199224 \n",
" 0.205935 \n",
" 0.0 \n",
" 0.465281 \n",
" 72.322486 \n",
" 0.16555 \n",
" 0.213664 \n",
" 46.902132 \n",
" \n",
" \n",
" min \n",
" 17.000000 \n",
" 1977.000000 \n",
" 1.000000 \n",
" 0.000000 \n",
" 1.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.010000 \n",
" -15.300000 \n",
" -2.230000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 15.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 12.500000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 3.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 1.000000 \n",
" 0.000000 \n",
" 7.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" -47.000000 \n",
" -11.250000 \n",
" -11.750000 \n",
" 0.000000 \n",
" 0.000000 \n",
" -37.700000 \n",
" -19.230000 \n",
" -19.220000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.00000 \n",
" 0.000000 \n",
" 0.000000 \n",
" \n",
" \n",
" 25% \n",
" 24.000000 \n",
" 1987.000000 \n",
" 3.000000 \n",
" 3.000000 \n",
" 270.000000 \n",
" 3.000000 \n",
" 4.000000 \n",
" 1.000000 \n",
" 11.000000 \n",
" 7.000000 \n",
" 63.200000 \n",
" 1.000000 \n",
" 0.500000 \n",
" 1.000000 \n",
" 0.000000 \n",
" 9.100000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 3.400000 \n",
" 0.260000 \n",
" -1.900000 \n",
" -0.220000 \n",
" 13.000000 \n",
" 32.500000 \n",
" 35.100000 \n",
" 58.000000 \n",
" 10.000000 \n",
" 33.700000 \n",
" 34.000000 \n",
" 19.000000 \n",
" 45.000000 \n",
" 39.900000 \n",
" 21.000000 \n",
" 1.000000 \n",
" 4.700000 \n",
" 1.000000 \n",
" 0.330000 \n",
" 13.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 89.000000 \n",
" 9.500000 \n",
" 90.000000 \n",
" 3.000000 \n",
" 0.000000 \n",
" 25.750000 \n",
" 0.000000 \n",
" 0.830000 \n",
" 3.000000 \n",
" 4.000000 \n",
" -6.000000 \n",
" -0.670000 \n",
" -0.650000 \n",
" 3.250000 \n",
" 3.350000 \n",
" -4.300000 \n",
" -0.500000 \n",
" -0.440000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.000000 \n",
" 12.000000 \n",
" 0.00000 \n",
" 0.000000 \n",
" 0.000000 \n",
" \n",
" \n",
" 50% \n",
" 28.000000 \n",
" 1991.000000 \n",
" 10.000000 \n",
" 10.000000 \n",
" 900.000000 \n",
" 10.000000 \n",
" 14.000000 \n",
" 1.410000 \n",
" 42.000000 \n",
" 29.000000 \n",
" 69.200000 \n",
" 3.000000 \n",
" 2.000000 \n",
" 3.000000 \n",
" 2.000000 \n",
" 24.200000 \n",
" 2.000000 \n",
" 1.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 2.000000 \n",
" 0.000000 \n",
" 13.600000 \n",
" 0.290000 \n",
" -0.200000 \n",
" -0.030000 \n",
" 61.000000 \n",
" 153.000000 \n",
" 40.350000 \n",
" 236.000000 \n",
" 41.000000 \n",
" 45.700000 \n",
" 38.900000 \n",
" 73.000000 \n",
" 65.600000 \n",
" 49.800000 \n",
" 93.000000 \n",
" 7.000000 \n",
" 7.100000 \n",
" 6.000000 \n",
" 0.570000 \n",
" 14.300000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 90.000000 \n",
" 52.800000 \n",
" 90.000000 \n",
" 10.000000 \n",
" 0.000000 \n",
" 45.000000 \n",
" 5.000000 \n",
" 1.250000 \n",
" 13.000000 \n",
" 14.000000 \n",
" -1.000000 \n",
" -0.040000 \n",
" -0.010000 \n",
" 13.200000 \n",
" 14.000000 \n",
" -0.500000 \n",
" -0.110000 \n",
" -0.020000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 1.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.000000 \n",
" 49.000000 \n",
" 0.00000 \n",
" 0.000000 \n",
" 0.000000 \n",
" \n",
" \n",
" 75% \n",
" 31.000000 \n",
" 1994.000000 \n",
" 31.000000 \n",
" 31.000000 \n",
" 2790.000000 \n",
" 31.000000 \n",
" 40.000000 \n",
" 1.770000 \n",
" 121.000000 \n",
" 84.000000 \n",
" 75.000000 \n",
" 10.000000 \n",
" 7.000000 \n",
" 10.000000 \n",
" 7.000000 \n",
" 33.300000 \n",
" 4.000000 \n",
" 3.000000 \n",
" 1.000000 \n",
" 0.000000 \n",
" 26.725000 \n",
" 1.000000 \n",
" 5.000000 \n",
" 1.000000 \n",
" 37.900000 \n",
" 0.330000 \n",
" 1.300000 \n",
" 0.140000 \n",
" 181.500000 \n",
" 450.500000 \n",
" 46.400000 \n",
" 739.000000 \n",
" 118.000000 \n",
" 57.100000 \n",
" 44.400000 \n",
" 213.000000 \n",
" 83.200000 \n",
" 59.700000 \n",
" 272.500000 \n",
" 20.000000 \n",
" 9.500000 \n",
" 16.000000 \n",
" 0.930000 \n",
" 15.600000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 1.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 90.000000 \n",
" 94.700000 \n",
" 90.000000 \n",
" 31.000000 \n",
" 0.000000 \n",
" 59.500000 \n",
" 22.000000 \n",
" 1.750000 \n",
" 37.000000 \n",
" 40.000000 \n",
" 3.000000 \n",
" 0.500000 \n",
" 0.580000 \n",
" 37.200000 \n",
" 38.200000 \n",
" 2.100000 \n",
" 0.375000 \n",
" 0.390000 \n",
" 0.000000 \n",
" 1.000000 \n",
" 3.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.000000 \n",
" 145.000000 \n",
" 0.00000 \n",
" 0.000000 \n",
" 100.000000 \n",
" \n",
" \n",
" max \n",
" 42.000000 \n",
" 2002.000000 \n",
" 38.000000 \n",
" 38.000000 \n",
" 3420.000000 \n",
" 38.000000 \n",
" 91.000000 \n",
" 11.250000 \n",
" 231.000000 \n",
" 167.000000 \n",
" 100.000000 \n",
" 32.000000 \n",
" 18.000000 \n",
" 29.000000 \n",
" 22.000000 \n",
" 100.000000 \n",
" 15.000000 \n",
" 13.000000 \n",
" 4.000000 \n",
" 3.000000 \n",
" 100.000000 \n",
" 5.000000 \n",
" 15.000000 \n",
" 6.000000 \n",
" 80.900000 \n",
" 0.900000 \n",
" 12.300000 \n",
" 1.490000 \n",
" 488.000000 \n",
" 1119.000000 \n",
" 100.000000 \n",
" 1720.000000 \n",
" 269.000000 \n",
" 100.000000 \n",
" 62.600000 \n",
" 451.000000 \n",
" 100.000000 \n",
" 79.300000 \n",
" 569.000000 \n",
" 53.000000 \n",
" 50.000000 \n",
" 59.000000 \n",
" 5.630000 \n",
" 31.000000 \n",
" 1.000000 \n",
" 2.000000 \n",
" 1.000000 \n",
" 1.000000 \n",
" 5.000000 \n",
" 1.000000 \n",
" 0.080000 \n",
" 0.500000 \n",
" 0.500000 \n",
" 0.080000 \n",
" 0.500000 \n",
" 1.600000 \n",
" 0.400000 \n",
" 1.000000 \n",
" 1.000000 \n",
" 0.050000 \n",
" 0.180000 \n",
" 0.180000 \n",
" 0.030000 \n",
" 0.180000 \n",
" 90.000000 \n",
" 100.000000 \n",
" 91.000000 \n",
" 38.000000 \n",
" 3.000000 \n",
" 86.000000 \n",
" 37.000000 \n",
" 3.000000 \n",
" 101.000000 \n",
" 91.000000 \n",
" 76.000000 \n",
" 15.000000 \n",
" 14.950000 \n",
" 89.100000 \n",
" 72.800000 \n",
" 60.500000 \n",
" 6.980000 \n",
" 6.200000 \n",
" 1.000000 \n",
" 5.000000 \n",
" 15.000000 \n",
" 1.000000 \n",
" 1.000000 \n",
" 2.000000 \n",
" 4.000000 \n",
" 0.0 \n",
" 4.000000 \n",
" 252.000000 \n",
" 2.00000 \n",
" 2.000000 \n",
" 100.000000 \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Age Born MP Starts Min \\\n",
"count 927.000000 927.000000 927.000000 927.000000 925.000000 \n",
"mean 27.891046 1990.585761 16.037756 15.864078 1429.944865 \n",
"std 4.750127 4.869455 14.106800 14.204039 1271.607598 \n",
"min 17.000000 1977.000000 1.000000 0.000000 1.000000 \n",
"25% 24.000000 1987.000000 3.000000 3.000000 270.000000 \n",
"50% 28.000000 1991.000000 10.000000 10.000000 900.000000 \n",
"75% 31.000000 1994.000000 31.000000 31.000000 2790.000000 \n",
"max 42.000000 2002.000000 38.000000 38.000000 3420.000000 \n",
"\n",
" 90s GA GA90 SoTA Saves Save% \\\n",
"count 927.000000 927.000000 925.000000 927.000000 927.000000 911.000000 \n",
"mean 15.856311 21.943905 1.494357 65.274002 45.613808 68.326894 \n",
"std 14.130571 20.109717 0.847218 59.971343 42.650898 13.616360 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 3.000000 4.000000 1.000000 11.000000 7.000000 63.200000 \n",
"50% 10.000000 14.000000 1.410000 42.000000 29.000000 69.200000 \n",
"75% 31.000000 40.000000 1.770000 121.000000 84.000000 75.000000 \n",
"max 38.000000 91.000000 11.250000 231.000000 167.000000 100.000000 \n",
"\n",
" W D L CS CS% PKatt \\\n",
"count 927.000000 927.000000 927.000000 927.000000 903.000000 927.000000 \n",
"mean 5.930960 3.996764 5.928803 4.296656 25.054596 2.658037 \n",
"std 6.563495 4.054034 6.030815 4.646165 21.653640 2.897940 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 1.000000 0.500000 1.000000 0.000000 9.100000 0.000000 \n",
"50% 3.000000 2.000000 3.000000 2.000000 24.200000 2.000000 \n",
"75% 10.000000 7.000000 10.000000 7.000000 33.300000 4.000000 \n",
"max 32.000000 18.000000 29.000000 22.000000 100.000000 15.000000 \n",
"\n",
" PKA PKsv PKm Save%.1 FK CK \\\n",
"count 927.000000 927.000000 927.000000 622.000000 927.000000 927.000000 \n",
"mean 2.064725 0.442287 0.151025 16.671543 0.478964 2.772384 \n",
"std 2.361525 0.765525 0.395516 23.677082 0.799122 3.051922 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"50% 1.000000 0.000000 0.000000 0.000000 0.000000 2.000000 \n",
"75% 3.000000 1.000000 0.000000 26.725000 1.000000 5.000000 \n",
"max 13.000000 4.000000 3.000000 100.000000 5.000000 15.000000 \n",
"\n",
" OG PSxG PSxG/SoT PSxG+/- /90 Cmp \\\n",
"count 927.000000 927.000000 911.000000 927.000000 927.000000 927.000000 \n",
"mean 0.642934 20.997627 0.299451 -0.269903 -0.057584 104.208198 \n",
"std 0.983015 19.313034 0.085490 3.389201 0.399200 104.670484 \n",
"min 0.000000 0.000000 0.010000 -15.300000 -2.230000 0.000000 \n",
"25% 0.000000 3.400000 0.260000 -1.900000 -0.220000 13.000000 \n",
"50% 0.000000 13.600000 0.290000 -0.200000 -0.030000 61.000000 \n",
"75% 1.000000 37.900000 0.330000 1.300000 0.140000 181.500000 \n",
"max 6.000000 80.900000 0.900000 12.300000 1.490000 488.000000 \n",
"\n",
" Att Cmp% Att.1 Thr Launch% \\\n",
"count 927.000000 920.000000 927.000000 927.000000 925.000000 \n",
"mean 258.993528 40.969348 387.741100 65.857605 46.045838 \n",
"std 260.013457 11.591413 365.260341 63.360527 18.024168 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 32.500000 35.100000 58.000000 10.000000 33.700000 \n",
"50% 153.000000 40.350000 236.000000 41.000000 45.700000 \n",
"75% 450.500000 46.400000 739.000000 118.000000 57.100000 \n",
"max 1119.000000 100.000000 1720.000000 269.000000 100.000000 \n",
"\n",
" AvgLen Att.2 Launch%.1 AvgLen.1 Opp Stp \\\n",
"count 925.000000 927.000000 919.000000 919.000000 927.000000 927.000000 \n",
"mean 39.524432 116.710895 62.545702 49.192057 145.062567 11.097087 \n",
"std 8.203695 108.687936 24.770864 13.184107 134.363922 11.423483 \n",
"min 15.000000 0.000000 0.000000 12.500000 0.000000 0.000000 \n",
"25% 34.000000 19.000000 45.000000 39.900000 21.000000 1.000000 \n",
"50% 38.900000 73.000000 65.600000 49.800000 93.000000 7.000000 \n",
"75% 44.400000 213.000000 83.200000 59.700000 272.500000 20.000000 \n",
"max 62.600000 451.000000 100.000000 79.300000 569.000000 53.000000 \n",
"\n",
" Stp% #OPA #OPA/90 AvgDist Gls Ast \\\n",
"count 915.000000 927.000000 924.000000 917.000000 927.000000 927.000000 \n",
"mean 7.260546 10.186624 0.660108 14.386041 0.004315 0.026969 \n",
"std 5.051059 11.088721 0.564902 2.648210 0.065582 0.168611 \n",
"min 0.000000 0.000000 0.000000 3.000000 0.000000 0.000000 \n",
"25% 4.700000 1.000000 0.330000 13.000000 0.000000 0.000000 \n",
"50% 7.100000 6.000000 0.570000 14.300000 0.000000 0.000000 \n",
"75% 9.500000 16.000000 0.930000 15.600000 0.000000 0.000000 \n",
"max 50.000000 59.000000 5.630000 31.000000 1.000000 2.000000 \n",
"\n",
" G-PK PK CrdY CrdR Gls.1 Ast.1 \\\n",
"count 927.000000 927.000000 927.000000 927.000000 927.000000 927.000000 \n",
"mean 0.003236 0.001079 0.679612 0.055016 0.000183 0.002255 \n",
"std 0.056827 0.032844 1.011726 0.228135 0.003129 0.024464 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"50% 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"75% 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 \n",
"max 1.000000 1.000000 5.000000 1.000000 0.080000 0.500000 \n",
"\n",
" G+A G-PK.1 G+A-PK xG npxG xA \\\n",
"count 927.000000 927.000000 927.000000 927.000000 927.000000 927.000000 \n",
"mean 0.002438 0.000151 0.002406 0.005070 0.003452 0.039159 \n",
"std 0.024646 0.002972 0.024630 0.058103 0.025219 0.115010 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"50% 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"75% 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"max 0.500000 0.080000 0.500000 1.600000 0.400000 1.000000 \n",
"\n",
" npxG+xA xG.1 xA.1 xG+xA npxG.1 npxG+xA.1 \\\n",
"count 927.000000 927.000000 927.000000 927.000000 927.000000 927.000000 \n",
"mean 0.042826 0.000129 0.002244 0.002395 0.000076 0.002352 \n",
"std 0.119709 0.002022 0.010492 0.010713 0.001182 0.010561 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"50% 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"75% 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"max 1.000000 0.050000 0.180000 0.180000 0.030000 0.180000 \n",
"\n",
" Mn/MP Min% Mn/Start Compl Subs Mn/Sub \\\n",
"count 927.000000 927.000000 705.000000 846.000000 927.000000 104.000000 \n",
"mean 86.201726 52.877454 89.117730 15.400709 0.168285 42.701923 \n",
"std 12.575787 39.271308 6.025894 14.010358 0.420515 22.928712 \n",
"min 1.000000 0.000000 7.000000 0.000000 0.000000 0.000000 \n",
"25% 89.000000 9.500000 90.000000 3.000000 0.000000 25.750000 \n",
"50% 90.000000 52.800000 90.000000 10.000000 0.000000 45.000000 \n",
"75% 90.000000 94.700000 90.000000 31.000000 0.000000 59.500000 \n",
"max 90.000000 100.000000 91.000000 38.000000 3.000000 86.000000 \n",
"\n",
" unSub PPM onG onGA +/- +/-90 \\\n",
"count 927.000000 927.000000 927.000000 927.000000 927.000000 927.000000 \n",
"mean 11.349515 1.301424 21.949299 21.957929 -0.008630 -0.114175 \n",
"std 12.663137 0.769184 22.037241 20.050890 15.247559 1.323327 \n",
"min 0.000000 0.000000 0.000000 0.000000 -47.000000 -11.250000 \n",
"25% 0.000000 0.830000 3.000000 4.000000 -6.000000 -0.670000 \n",
"50% 5.000000 1.250000 13.000000 14.000000 -1.000000 -0.040000 \n",
"75% 22.000000 1.750000 37.000000 40.000000 3.000000 0.500000 \n",
"max 37.000000 3.000000 101.000000 91.000000 76.000000 15.000000 \n",
"\n",
" On-Off onxG onxGA xG+/- xG+/-90 On-Off.1 \\\n",
"count 765.000000 927.000000 927.000000 927.000000 927.000000 765.000000 \n",
"mean -0.073634 21.076591 21.104746 -0.027616 -0.081834 -0.070405 \n",
"std 1.427682 20.177644 19.201389 11.398664 1.063579 1.104272 \n",
"min -11.750000 0.000000 0.000000 -37.700000 -19.230000 -19.220000 \n",
"25% -0.650000 3.250000 3.350000 -4.300000 -0.500000 -0.440000 \n",
"50% -0.010000 13.200000 14.000000 -0.500000 -0.110000 -0.020000 \n",
"75% 0.580000 37.200000 38.200000 2.100000 0.375000 0.390000 \n",
"max 14.950000 89.100000 72.800000 60.500000 6.980000 6.200000 \n",
"\n",
" 2CrdY Fls Fld Off Crs Int \\\n",
"count 927.000000 927.000000 927.000000 927.000000 927.000000 927.000000 \n",
"mean 0.004315 0.387271 2.046386 0.006472 0.008630 0.036677 \n",
"std 0.065582 0.707847 2.491672 0.080234 0.092546 0.199224 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"50% 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 \n",
"75% 0.000000 1.000000 3.000000 0.000000 0.000000 0.000000 \n",
"max 1.000000 5.000000 15.000000 1.000000 1.000000 2.000000 \n",
"\n",
" TklW PKwon PKcon Recov Won Lost \\\n",
"count 927.000000 927.0 927.000000 927.000000 927.00000 927.000000 \n",
"mean 0.028047 0.0 0.203883 78.856526 0.02589 0.043150 \n",
"std 0.205935 0.0 0.465281 72.322486 0.16555 0.213664 \n",
"min 0.000000 0.0 0.000000 0.000000 0.00000 0.000000 \n",
"25% 0.000000 0.0 0.000000 12.000000 0.00000 0.000000 \n",
"50% 0.000000 0.0 0.000000 49.000000 0.00000 0.000000 \n",
"75% 0.000000 0.0 0.000000 145.000000 0.00000 0.000000 \n",
"max 4.000000 0.0 4.000000 252.000000 2.00000 2.000000 \n",
"\n",
" Won% \n",
"count 57.000000 \n",
"mean 36.842105 \n",
"std 46.902132 \n",
"min 0.000000 \n",
"25% 0.000000 \n",
"50% 0.000000 \n",
"75% 100.000000 \n",
"max 100.000000 "
]
},
"execution_count": 30,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Description of the raw DataFrame, df_fbref_goalkeeper_raw, showing some summary statistics for each numberical column in the DataFrame\n",
"df_fbref_goalkeeper_raw.describe()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Next, we will check to see how many missing values we have i.e. the number of NULL values in the dataset, and in what features these missing values are located. This can be plotted nicely using the [missingno](https://pypi.org/project/missingno/) library (pip install missingno)."
]
},
{
"cell_type": "code",
"execution_count": 31,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
""
]
},
"execution_count": 31,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABtQAAAGdCAYAAACCS5dLAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9t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dt8uTJ/Y597bXXBGoAAAAAAFCp7KFGJfja174Wzz33XNb977zzzmhqaorGxsaoqRk+MVR1qQsAAAAAAACgPB100EFZ921ubo4PfOADscEGGwyrMC3CDDUAAAAAAADW4IADDogDDjigT9vdd98d991332p9e3p6ilVW0QnUAAAAAAAA6Nd9990Xd999d1Z96+rqClxN6QjUAAAAACBLue6XVCmcH4DhZ/78+Vn3/fOf/xzPPPNM7x5qjY2NMWbMmKiqqipghcUhUAMAAACALLW0tAyo/9SpUwtSR7ka6PmJqLxzBDDUnHPOOXHOOef0aUun07Fs2bJoa2uLtra2aG9vj4suuigiIiZPntyn79FHHx1f+tKXilVuwQjUAAAAAAAA6Nett94aP/zhD7PuP2rUqMhkMhERMXLkyPjoRz9aqNKKSqAGAAAAAFmypOHaOT8Aw08ymVzjY8cff3yMGTMm6uvro66uLrbbbrtobGwsXnFFJFADIO+am5tz+iNqbf9zBgAAKAeWfFw7Sz4CDD833nhjLFiwINrb23uXeLzhhhsiIuKOO+7o0/fiiy+OvfbaqxRlFpxADQAAAAAAgH7V19fH+973vj5tN910U/T09KzW95VXXhGoAUC2kslktLa2DmiMKxIBAAAAYGg477zz4tFHH41MJhOpVCra2tpiyZIlMW/evFKXVjACNQAAAAAAALK2/vrrxzbbbBPLli2Ltra2qKuri6VLl/Y7a224EKgBkHf2UAMAAACA4eumm26Kv//976u1b7zxxiWopjgEagDknSUfAQAAAGD4qqur67e9ra2tuIUUkUANgLwzQw0AAAAAhq9ly5bFJptsErvttls0NjZGU1NTNDU1xXbbbVfq0gpGoAYAAAAAAMCApFKpmD9/fixdujTq6uqivr4+Xnrppeju7o5UKhWpVCoymUx85StfiQ022KDU5Q6aQA2AvLPkIwAA5cj7VACA/DjooIPiT3/6UyxevDg6Ozujo6Mj3nzzzX77zps3L2677bYiV5h/AjUAAAAAAACydvTRR8fRRx8dERGZTCa6urriiSeeiKuuumq1vmPGjCl2eQUhUAMAAAAAACBrV155ZfziF7/Iqu/06dPjiSeeiKampt791t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AAABZGujMwUqbNWhmJUBlmDJlSqTT6Whvb4/29vZoa2uLf/zjH/HSSy/FggULYu7cubFgwYKIiNhss83iU5/6VIkrHjyBGgB519zcnNNVia6kBQCAdwkmAIBylkgkYv3114/1118/MplMfP3rX48//elPq/WbM2dOCarLP4EaAHmXTCajtbV1QGP84Q8AAH1Z8hEAKFfXX399PPLII1n1HTlyZIGrKQ6BGgAAAAAAMOy1t7fHJZdcEr/5zW+irq4uDj300PjqV78aiUQi/va3v8WUKVPipZdeig033DBOPvnkOOSQQ0pdctnafPPNs+47e/bs+O53vxtjxoyJ6urqSCQSse+++w65oE2gBgAAAAAADHsXX3xxLFmyJO6///5YunRpnHnmmdHU1BTHHntsnHjiifHRj340Lr/88pg+fXp8/etfjwkTJsQOO+xQ6rLL0qc//en49Kc/vdY+6XQ69ttvv4iIuOeee/o89tRTT8W1115bqPIKQqAGAAAAUIbsoQYA+fX000/HlVdeGR/84AcjIuITn/hE/PGPf4zddtst5s2bF6eddlqMGTMmNt9883jggQfiT3/6k0BtEBKJxBofq6+vL2Il+SFQAwAAAChD9lADgPxqamqKRx55JHbfffd4++2345lnnon99tsvGhsbo6qqKh5++OE47rjj4vnnn4/Zs2fHhz/84ayeN51Ox/Tp02PWrFkxceLEmDRp0lrDpOEsk8lEKpWKtra2aGtrW2O/xsbG4hWVJwI1AAAAAABg2PvGN74RZ599duy0007R09MT//7v/x6nnnpq1NTUxFe/+tW47rrr4pprrol0Oh0nnXRS7L777ut8znQ6HWeffXb89a9/jVQqFfX19bH11lvHVVddVXGh2o033hg/+clP+n1s0qRJUVVVFRERI0aMiOOOO66IleWHQA0AAAAAABj25s6dG9tss02cfPLJsXz58rjkkkviyiuvjHPOOSdef/31+PSnPx2f+cxnYubMmXHFFVfE1ltvHQcccMBan3P69Onx17/+NTo6OiIioqOjI1544YW4+OKLY5NNNunTd1Wg9K9fr62tP9mOXdfzZTKZ6OnpiYiInp6eyGQyfb4e6O3pp59e47GmT5/e5/7+++8fG2644Tq/13IiUAMAAAAoQ/ZQA4D8mTt3blx++eXx5JNPxkYbbRQREXV1dfHFL34xxo4dG88++2z8/Oc/j+rq6th2221j4cKFceONN64zUJs1a1akUqk+bd3d3fHMM88U7HsZDta2HGS5EqgBAAAAlCF7qAFA/rz44osxatSo3jAtImLbbbeNdDodf/7zn2PLLbeM6urq3sc+/OEPx1133bXO5504cWLU19f3zlCLiKipqYl99903JkyY0O+YVTPBcmlb1/Nl8zz/PKusv9lo2bQ9+uijWdW2Jv/87zBUCNQAAAAAACAHZhMPHRtuuGG8/fbbsWDBgth4440jIuK1116LiIgdd9xxtb2/Xnvttdh8883X+byTJk2KrbfeOmbOnBmdnZ1RV1cX22yzTZx11lnDeg+1vffeOy6//PKorq6ORCIR1dXVfb5e9d9XX3213/G/+c1vYtKkSUWuenAEagAAAABlyIe0AOXPbOKho7m5Obbeeuv4+te/Hueee26kUqmYPHlyHHrooXHooYfGt7/97bj88svj6KOPjpdffjm+/e1vxznnnLPO500kEnHVVVfF9OnT49VXX40tt9wyJk2aNKzDtIiIrbfeOi699NJob2+Ptra2aGtri/b29lixYkWkUqno7OxcbSnMf7Z06dIiVpsfAjUA8q65uTmnN5TeTAIAwLt8SAsA+VNTUxO33357XH755fH5z38+RowYEQcddFCceeaZUV9fH/fcc09ceeWVceihh8aGG24YX/3qV+Pwww/P6rkTiUTsuuuuseuuuxb4uygfZ555Zrz88stZ9d1qq61i4403jrq6uqirq4uenp7Yf//9C1xh/gnUAMi7ZDIZra2tAxrjSloAAAAACmncuHFxww039PvYDjvsEA888ECRKxq6dtttt95Arbq6OkaOHBkrVqxYY//JkycXq7SCEagBkHdmqAEAwOBZ8hEAKFfHHHNMHHPMMX3afvvb38aFF164Wt8xY8YUq6yCEqgBkHdmqAEAwOBZ8hEAGEr22GOPeOqpp/q0HX/88TF9+vQ4+OCDe9vq6urim9/8Zmy55ZbFLnFQBGoAAAAAZcgMNQBgqJs1a1ZERCxfvry3bfny5fGrX/1KoAYAAADA4JmhBgAMd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rAFAIBSy+W9fCnfx7uQDwAoV5dddll0d3f3LveYSqXi9ttvj2eeeWa1vr/85S/j3//936OpqSkaGxujqakpmpqaoqqqqgSV506gBkDeDbUPKgAAAACAgampqYmGhoZoaGiIiIgpU6b0PrZy5cpob2+Pk08+OZYsWRIXX3xxn7H/8R//EWeeeWZR6x0sgRoAAABAGbLkIwAwVNXW1sbYsWNjk002iSVLlqz2+Lhx40pQ1eAI1AAAAADKkCUfAYChrqOjI7bddts466yzorGxMUaPHh3V1dWlLisnAjUAAAAAAAAKoru7O5YtWxaJRCISiUSMGjVqyO2fFiFQAwAAAAAAoABmzZoVmUwmTjnllD7tX/ziF+OYY44pUVW5GZrz6gAAAAAAAChrW265Zb/tixYtKnIlg2eGGgAAAEAZamlpGfCYqVOn5r0OAIBcbbjhhjFr1qzV2p977rkSVDM4AjUAAACAMjRt2rScxiWTybzWAcCaufgB1u53v/tdv+1bbbVVkSsZPIEaAAAAAADkwMUPVKoXX3wxrr322pzH19bW5rGa4hCoAQAAAECWcv3wvFI4PwCV4fbbb4/XX3896/6HH3541NT8XyRVU1MTRxxxRIEqKxyBGgAAAABkaaDLu1Xa0m6WvwOoDNdee23MmzcvIiK6urqis7MzWltbo6enZ7W+G2+8cZx88snFLjHvBGoAAAAAAADEihUr4pVXXomIiKqqqj6P9fT0RHd3d7+3dDodhx12WDz88MOrPeeECROKUnuhCdQAAAAAAACIo48+Otra2vL6nH/84x/j9NNPj/r6+qivr4/11lsvjj/++HjPe96T1+MUmkANAAAAAACAuOiii+I73/lORLw7Qy2TyfS5319bJpOJ559/fo3P+8ILL/S5X11dHWeddVb+Ci8CgRoAedfc3JzTRtTJZDLvtQAAAAAA2dlhhx1y3tvyM5/5TLz55purte+9996x1157RW1tbXR3d0dXV1fstddeg6y0+ARqAORdMpmM1tbWAY2xCTUAAAAADF39hWkREU8//XR84QtfiLq6uqivr4+6urqora0tcnWDJ1ADIO/MUAMAAACAyjJhwoSYM2dOv48dd9xxfe5/9rOfjeOPP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7Ozt491PoL0yIiZs2aFdttt12Rq84/gRoAeWeGGgAAw41ZNwBApTrhhBPi73//e87jb7rpprjpppv6tF1++eWx6667Dra0ohKoAZB3ZqgBAAAAlcAFF1SCE088Ma666qro6urqnaW26r+5WtNstnImUAMg78xQAwAAACqB5XmpBN/5znfiH//4R87jv/SlL8U+++wTTU1Nsd5660VVVVUeqysegRoAeWeGGgAAw00pPjA16wEAKAdHHXVUXHLJJVFdXR2JRCISiUSsWLEi6/GvvvpqHH300QWssDgEagDknRlqAAAweGY9AADlYO+994699967T9spp5wSL730Ulbj3/ve9xairKITqAEAAACsg9liAADvuvrqq+Pll1+Ourq66OrqilQqFeeee26/fTOZTJGrKwyBGgB5Z8lHAAAAACgfqVQqFi9e3Lt/2T/vY9bT0xPpdDp6enp6b9neb29v771/5JFHRjKZjH/84x+xdOnS6OnpiYiIH//4x/HjH/+4Tz233357fPCDHyzeCcgDgRoAAAAAAOTADGaGio997GOlLqGPadOmCdQAAAAAAKAS2O+SoeLCCy+M73znOxHx7hKM/7oU47+297dU46q2xYsXZ33sbbfdNr75zW9GdXV1JBKJqKqqipqaoRdPDb2KASh7zc3NOb2h9GYSAIBy5QNTAGAo++hHPxof/ehH8/Z8ra2t8fzzz2fVd+HChXHvvfdGXV1d1NTURCKR6A3XVv03kUjE/vvvHyNHjsxbjfkmUAMg7+yhBgDAcGNJLwCAd1199dUxb9686OjoiLfffjva2tri1ltvjbfffnu1vm+++Wb84Ac/WOdzvvjii3HeeecVoty8EKgBAAAAAACQtREjRsQWW2zRp+2Xv/xlPPfcc/32P+qoo2LEiBGRyWSip6cn0ul0pNPp3q8zmUx8/vOfL0LluROoAQAAAKyDJR8BANZuTWHauHHj4oQTTihyNfknUAMAAAAAgBxYEhjWrbq6utQl5IVADQAAAGAdfGAKQH/MYKYSzJ8/Px555JHe+1VVVQMaP3LkyHyXVBICNQDyrrm5Oac3lN5MAgDAu4R4AEA5+NrXvhaLFi3KeXxtbW0eqykdgRoAAABAGTLrAQA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zjvxuc99Ll5++eXYcccdY7/99ouFCxfGr371q/jtb38b3/nOd2LnnXeOiIhPfepTMWnSpNWOlclk4jvf+U6kUqnevgAAAABQDlpaWgbUv9L2ix7o+YmovHMEMNSccMIJceCBB8bSpUtj3rx58frrr8fjjz8eERG///3vc3rOz33uc/H//t//y2eZBZdVoHb11VfH//7v/8YxxxwT559/flRVVUVExFVXXRV33XVX7LnnnnHYYYfF/fffHy+//HIcc8wxccEFF/SOnz59ehx33HFx0UUXxX/9139FRMRhhx3W77HuvPPOeOedd+KEE06I3XbbbbDfHwAlkEwmo7W1dUBj/AEFAAAMBbnsF11JnB+A4ae1tTVmz57dp23kyJGx3nrrxYgRI3pvXV1dsXLlyujp6Yl0Oh09PT29X6+69fT0RFVVVey5554l+m5yt85Arbu7O375y19GU1NTnHHGGb1hWkTE6aefHt///vfjnnvuicMOOyx+9atfRVVV1Wofok6aNCkmTZoUf/jDH2LRokUxbty4fo81e/bsmDp1amyxxRZxyimnDO47A3LW3Nyc0xvgZDKZ91oYmryGCifXcwsAAOSHGWprZ4YawPCzbNmy2HHHHePYY4+NcePGxQYbbBC1tbWlLqvo1hmoLV26NN55553YdtttY+TIkX0eq6uriy222CJmzpwZy5cvjyOPPDL233//aGhoWO15Vp3cFStWrPFY11xzTXR1dcV5551Xkf8YUC7MLoLy5ecTAABKywVua+f8AAw/I0aMiOeeey6ee+65dfa9/PLLY9dddy1CVcW3zkBtVbC1cuXKfh9fvnx5ZDKZmD9/fnzmM5/pt8/SpUtjxowZsd5668Wmm27ab59nn302nnjiidhll11i7733zrZ+AAAAACgaM9TWzgw1gOFnTflQf1555ZVhG6hVr6tDU1NTbLrppvHXv/413njjjT6PzZo1q7dt2bJla3yOq6++OlasWBGHHnroGmee3X333RER8aUvfSnr4gEAAAAAACicN998M+u+I0aMKGAlpbXOGWoREV/84hdjypQpcdJJJ8VFF10UW221Vfz1r3+NCy+8MOrr6+Odd96JTCbT79hbb701fvzjH8f48ePjq1/9ar995s+fH08++WS8//3vj3322Sf37wYAAAAACsiShmvn/AAMP5/4xCfi0UcfXa19l112iZNPPjnq6+ujvr4+6urqVts6bDipyqwpCfsXl112Wdx33319grODDz44Ro0aFd///vfjxz/+cXz4wx/uM+aGG26IW2+9NZqamuL++++PiRMn9vvc3/rWt+L666+Ps88+2ww1AAAAAAAAykpWM9QiIs4///w4/PDD4w9/+ENkMpnYZZddYrvttovTTjstIiLe+9739vZNp9MxefLkePjhh2ODDTaIu+++e41hWkTEk08+GRERBx54YK7fBwAAAAAAABRE1oFaRMSHPvSh+NCHPtSn7cUXX4zRo0fHuHHjIuL/Nqc77bTT4qmnnorx48fH3XffHVtsscUan3Pp0qXxwgsvxIc//OHYdNNNB/4dAAAAAAAAQAFVZ9Ppa1/7Wuy5556RTqf7tM+cOTPmzZsXu+++e0REZDKZOOOMM+Kpp56KiRMnxoMPPrjWMC0i4oUXXuid8QYAAAAAAADlJqtA7f3vf38sXry4z6Zzy5YtiwsuuCAiIr785S9HRMR9990Xv/rVr2LChAlx77339s5aW5uZM2dGRMR222034OIBAAAAAACg0LJa8vG4446LH//4x3H++efH7373u9hggw3i8ccfjzfeeCNOO+202HbbbWPlypVx6623RsT/LQ35ve99r9/nOuqoo2Ls2LG99994442IiJgwYcJgvxcAAAAAAADIu6wCtYaGhnjwwQfjmmuuiT/84Q+xYsWK+OAHPxhnn312HHDAARER8dprr8Vbb70VERG/+tWv4le/+lW/z7Xffvv1CdRWjclmNhsAAAAAAAAUW1Umk8mUuggAAAAAAAAoV1ntoQYAAAAAAACVSqAGAAAAAAAAayFQAwAAAAAAgLUQqAEAAAAAAMBaCNQAAAAAAABgLQRqAAAAAAAAsBYCNQAAAAAAAFgLgRoAAAAAAACshUANAAAAAAAA1kKgBgAAAAAAAGvx/wH8dx57odx5awAAAABJRU5ErkJggg==\n",
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# Plot visualisation of the missing values for each feature of the raw DataFrame, df_fbref_goalkeeper_raw\n",
"msno.matrix(df_fbref_goalkeeper_raw, figsize = (30, 7))"
]
},
{
"cell_type": "code",
"execution_count": 32,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Min 2\n",
"GA90 2\n",
"Save% 16\n",
"CS% 24\n",
"Save%.1 305\n",
"PSxG/SoT 16\n",
"Cmp% 7\n",
"Launch% 2\n",
"AvgLen 2\n",
"Launch%.1 8\n",
"AvgLen.1 8\n",
"Stp% 12\n",
"#OPA/90 3\n",
"AvgDist 10\n",
"Mn/Start 222\n",
"Compl 81\n",
"Mn/Sub 823\n",
"On-Off 162\n",
"On-Off.1 162\n",
"Won% 870\n",
"dtype: int64"
]
},
"execution_count": 32,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Counts of missing values\n",
"null_value_stats = df_fbref_goalkeeper_raw.isnull().sum(axis=0)\n",
"null_value_stats[null_value_stats != 0]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The visualisation shows us very quickly that there are missing values in the dataset but as this data is scraped, this fine at this stage."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"---\n",
"\n",
" \n",
"\n",
"## 4. Data Engineering \n",
"Before we answer the questions in the brief through [Exploratory Data Analysis (EDA)](#section5), we'll first need to clean and wrangle the datasets to a form that meet our needs."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"### 4.1. Outfield Players "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"#### 4.1.1. Assign Raw DataFrame to New Engineered DataFrame "
]
},
{
"cell_type": "code",
"execution_count": 33,
"metadata": {},
"outputs": [],
"source": [
"# Assign Raw DataFrame to new Engineered DataFrame\n",
"df_fbref_outfield = df_fbref_outfield_raw"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"#### 4.1.2. Include League Name and League Country for each team "
]
},
{
"cell_type": "code",
"execution_count": 34,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Data already saved previously\n"
]
}
],
"source": [
"# Create DataFrame of Home and Away teams\n",
"\n",
"## All unique Home and Away teams\n",
"lst_teams = list(df_fbref_outfield['Squad'].unique())\n",
"\n",
"\n",
"## DataFrames of Home and Away teams\n",
"df_teams = pd.DataFrame(lst_teams)\n",
"\n",
"\n",
"## Export DataFrame\n",
"if not os.path.exists(os.path.join(data_dir + '/reference/teams/fbref_teams_big5_latest.csv')):\n",
" \n",
" ### Save latest version\n",
" df_teams.to_csv(data_dir + '/reference/teams/fbref_teams_big5_latest.csv', index=None, header=True)\n",
"\n",
" ### Save a copy to archive folder (dated)\n",
" df_teams.to_csv(data_dir + f'/reference/teams/archive/fbref_teams_big5_last_updated_{today}.csv', index=None, header=True) \n",
"\n",
"else:\n",
" df_teams = pd.read_csv(data_dir + '/reference/teams/fbref_teams_big5_latest.csv')\n",
" print('Data already saved previously')"
]
},
{
"cell_type": "code",
"execution_count": 35,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" Team Name \n",
" League Name \n",
" Team Country \n",
" \n",
" \n",
" \n",
" \n",
" 0 \n",
" Augsburg \n",
" Bundesliga \n",
" Germany \n",
" \n",
" \n",
" 1 \n",
" Bayern Munich \n",
" Bundesliga \n",
" Germany \n",
" \n",
" \n",
" 2 \n",
" Dortmund \n",
" Bundesliga \n",
" Germany \n",
" \n",
" \n",
" 3 \n",
" Eint Frankfurt \n",
" Bundesliga \n",
" Germany \n",
" \n",
" \n",
" 4 \n",
" Freiburg \n",
" Bundesliga \n",
" Germany \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Team Name League Name Team Country\n",
"0 Augsburg Bundesliga Germany\n",
"1 Bayern Munich Bundesliga Germany\n",
"2 Dortmund Bundesliga Germany\n",
"3 Eint Frankfurt Bundesliga Germany\n",
"4 Freiburg Bundesliga Germany"
]
},
"execution_count": 35,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df_teams.head()"
]
},
{
"cell_type": "code",
"execution_count": 36,
"metadata": {},
"outputs": [],
"source": [
"# Join Teams DataFrame that adds the 'league_name' and 'league_country' columns\n",
"df_fbref_outfield = pd.merge(df_fbref_outfield, df_teams, left_on='Squad', right_on='Team Name', how='left')\n",
"\n",
"# Remove duplicate columns after join (contain '_y') and remove '_x' suffix from kept columns\n",
"df_fbref_outfield = df_fbref_outfield[df_fbref_outfield.columns.drop(list(df_fbref_outfield.filter(regex='_y')))]\n",
"df_fbref_outfield.columns = df_fbref_outfield.columns.str.replace('_x','')"
]
},
{
"cell_type": "code",
"execution_count": 37,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(12753, 166)"
]
},
"execution_count": 37,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df_fbref_outfield.shape"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"#### 4.1.3. String Cleaning "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Player"
]
},
{
"cell_type": "code",
"execution_count": 38,
"metadata": {},
"outputs": [],
"source": [
"# Remove accents and create lowercase name\n",
"df_fbref_outfield['Player Lower'] = (df_fbref_outfield['Player']\n",
" .str.normalize('NFKD')\n",
" .str.encode('ascii', errors='ignore')\n",
" .str.decode('utf-8')\n",
" .str.lower()\n",
" )"
]
},
{
"cell_type": "code",
"execution_count": 39,
"metadata": {},
"outputs": [],
"source": [
"# First Name Lower\n",
"df_fbref_outfield['First Name Lower'] = df_fbref_outfield['Player Lower'].str.rsplit(' ', 0).str[0]\n",
"\n",
"# Last Name Lower\n",
"df_fbref_outfield['Last Name Lower'] = df_fbref_outfield['Player Lower'].str.rsplit(' ', 1).str[-1]\n",
"\n",
"# First Initial Lower\n",
"df_fbref_outfield['First Initial Lower'] = df_fbref_outfield['Player Lower'].astype(str).str[0]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### League Country lower"
]
},
{
"cell_type": "code",
"execution_count": 40,
"metadata": {},
"outputs": [],
"source": [
"# Remove accents and create lowercase name\n",
"df_fbref_outfield['Team Country Lower'] = (df_fbref_outfield['Team Country']\n",
" .str.normalize('NFKD')\n",
" .str.encode('ascii', errors='ignore')\n",
" .str.decode('utf-8')\n",
" .str.lower()\n",
" )"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Countries"
]
},
{
"cell_type": "code",
"execution_count": 41,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" ID \n",
" Full Country Name \n",
" FIFA Code \n",
" IOC Code \n",
" ISO Code \n",
" \n",
" \n",
" \n",
" \n",
" 0 \n",
" 1 \n",
" Afghanistan \n",
" AFG \n",
" AFG \n",
" AFG \n",
" \n",
" \n",
" 1 \n",
" 2 \n",
" Åland Islands \n",
" ALA \n",
" NaN \n",
" ALA \n",
" \n",
" \n",
" 2 \n",
" 3 \n",
" Albania \n",
" ALB \n",
" ALB \n",
" ALB \n",
" \n",
" \n",
" 3 \n",
" 4 \n",
" Algeria \n",
" ALG \n",
" ALG \n",
" DZA \n",
" \n",
" \n",
" 4 \n",
" 5 \n",
" American Samoa \n",
" ASA \n",
" ASA \n",
" ASM \n",
" \n",
" \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" \n",
" \n",
" 249 \n",
" 250 \n",
" Wallis and Futuna \n",
" WLF \n",
" NaN \n",
" WLF \n",
" \n",
" \n",
" 250 \n",
" 251 \n",
" Western Sahara \n",
" ESH \n",
" NaN \n",
" ESH \n",
" \n",
" \n",
" 251 \n",
" 252 \n",
" Yemen \n",
" YEM \n",
" YEM \n",
" YEM \n",
" \n",
" \n",
" 252 \n",
" 253 \n",
" Zambia \n",
" ZAM \n",
" ZAM \n",
" ZMB \n",
" \n",
" \n",
" 253 \n",
" 254 \n",
" Zimbabwe \n",
" ZIM \n",
" ZIM \n",
" ZWE \n",
" \n",
" \n",
"
\n",
"
254 rows × 5 columns
\n",
"
"
],
"text/plain": [
" ID Full Country Name FIFA Code IOC Code ISO Code\n",
"0 1 Afghanistan AFG AFG AFG\n",
"1 2 Åland Islands ALA NaN ALA\n",
"2 3 Albania ALB ALB ALB\n",
"3 4 Algeria ALG ALG DZA\n",
"4 5 American Samoa ASA ASA ASM\n",
".. ... ... ... ... ...\n",
"249 250 Wallis and Futuna WLF NaN WLF\n",
"250 251 Western Sahara ESH NaN ESH\n",
"251 252 Yemen YEM YEM YEM\n",
"252 253 Zambia ZAM ZAM ZMB\n",
"253 254 Zimbabwe ZIM ZIM ZWE\n",
"\n",
"[254 rows x 5 columns]"
]
},
"execution_count": 41,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Import reference CSV of country names and codes used to map to countries as part of the string cleaning\n",
"df_countries = pd.read_csv(data_dir + '/reference/countries/countries_all.csv')\n",
"\n",
"df_countries "
]
},
{
"cell_type": "code",
"execution_count": 42,
"metadata": {},
"outputs": [],
"source": [
"# Extract the nationality code\n",
"df_fbref_outfield['Nationality Code'] = df_fbref_outfield['Nation'].str.strip().str[-3:]"
]
},
{
"cell_type": "code",
"execution_count": 43,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'AFG': 'Afghanistan',\n",
" 'ALA': 'Åland Islands',\n",
" 'ALB': 'Albania',\n",
" 'ALG': 'Algeria',\n",
" 'ASA': 'American Samoa',\n",
" 'AND': 'Andorra',\n",
" 'ANG': 'Angola',\n",
" 'AIA': 'Anguilla',\n",
" 'ATA': 'Antarctica',\n",
" 'ATG': 'Antigua and Barbuda',\n",
" 'ARG': 'Argentina',\n",
" 'ARM': 'Armenia',\n",
" 'ARU': 'Aruba',\n",
" 'AUS': 'Australia',\n",
" 'AUT': 'Austria',\n",
" 'AZE': 'Azerbaijan',\n",
" 'BAH': 'The Bahamas',\n",
" 'BHR': 'Bahrain',\n",
" 'BAN': 'Bangladesh',\n",
" 'BRB': 'Barbados',\n",
" 'BLR': 'Belarus',\n",
" 'BEL': 'Belgium',\n",
" 'BLZ': 'Belize',\n",
" 'BEN': 'Benin',\n",
" 'BER': 'Bermuda',\n",
" 'BHU': 'Bhutan',\n",
" 'BOL': 'Bolivia',\n",
" 'BES': 'Caribbean Netherlands: Bonaire, Sint Eustatius and Saba',\n",
" 'BIH': 'Bosnia and Herzegovina',\n",
" 'BOT': 'Botswana',\n",
" 'BVT': 'Bouvet Island',\n",
" 'BRA': 'Brazil',\n",
" 'IOT': 'British Indian Ocean Territory',\n",
" 'VGB': 'British Virgin Islands',\n",
" 'BRU': 'Brunei',\n",
" 'BUL': 'Bulgaria',\n",
" 'BFA': 'Burkina Faso',\n",
" 'BDI': 'Burundi',\n",
" 'CAM': 'Cambodia',\n",
" 'CMR': 'Cameroon',\n",
" 'CAN': 'Canada',\n",
" 'CPV': 'Cape Verde',\n",
" 'CAY': 'Cayman Islands',\n",
" 'CTA': 'Central African Republic',\n",
" 'CHA': 'Chad',\n",
" 'CHI': 'Chile',\n",
" 'CHN': 'China',\n",
" 'CXR': 'Christmas Island',\n",
" 'CCK': 'Cocos (Keeling) Islands',\n",
" 'COL': 'Colombia',\n",
" 'COM': 'Comoros',\n",
" 'COD': 'Democratic Republic of the Congo',\n",
" 'CGO': 'Republic of the Congo',\n",
" 'COK': 'Cook Islands',\n",
" 'CRC': 'Costa Rica',\n",
" 'CIV': \"Côte d'Ivoire\",\n",
" 'CRO': 'Croatia',\n",
" 'CUB': 'Cuba',\n",
" 'CUW': 'Curaçao',\n",
" 'CYP': 'Cyprus',\n",
" 'CZE': 'Czech Republic',\n",
" 'DEN': 'Denmark',\n",
" 'DJI': 'Djibouti',\n",
" 'DMA': 'Dominica',\n",
" 'DOM': 'Dominican Republic',\n",
" 'ECU': 'Ecuador',\n",
" 'EGY': 'Egypt',\n",
" 'SLV': 'El Salvador',\n",
" 'ENG': 'England',\n",
" 'EQG': 'Equatorial Guinea',\n",
" 'ERI': 'Eritrea',\n",
" 'EST': 'Estonia',\n",
" 'SWZ': 'Eswatini',\n",
" 'ETH': 'Ethiopia',\n",
" 'FLK': 'Falkland Islands',\n",
" 'FRO': 'Faroe Islands',\n",
" 'FIJ': 'Fiji',\n",
" 'FIN': 'Finland',\n",
" 'FRA': 'France',\n",
" 'GUF': 'French Guiana',\n",
" 'TAH': 'French Polynesia',\n",
" 'ATF': 'French Southern and Antarctic Lands',\n",
" 'GAB': 'Gabon',\n",
" 'GAM': 'Gambia',\n",
" 'GEO': 'Georgia',\n",
" 'GER': 'Germany',\n",
" 'GHA': 'Ghana',\n",
" 'GIB': 'Gibraltar',\n",
" 'GRE': 'Greece',\n",
" 'GRL': 'Greenland',\n",
" 'GRN': 'Grenada',\n",
" 'GPE': 'Guadeloupe',\n",
" 'GUM': 'Guam',\n",
" 'GUA': 'Guatemala',\n",
" 'GGY': 'Guernsey',\n",
" 'GUI': 'Guinea',\n",
" 'GNB': 'Guinea-Bissau',\n",
" 'GUY': 'Guyana',\n",
" 'HAI': 'Haiti',\n",
" 'HMD': 'Heard Island and McDonald Islands',\n",
" 'HON': 'Honduras',\n",
" 'HKG': 'Hong Kong',\n",
" 'HUN': 'Hungary',\n",
" 'ISL': 'Iceland',\n",
" 'IND': 'India',\n",
" 'IDN': 'Indonesia',\n",
" 'IRN': 'Iran',\n",
" 'IRQ': 'Iraq',\n",
" 'IRL': 'Ireland',\n",
" 'IMN': 'Isle of Man',\n",
" 'ISR': 'Israel',\n",
" 'ITA': 'Italy',\n",
" 'JAM': 'Jamaica',\n",
" 'JPN': 'Japan',\n",
" 'JEY': 'Jersey',\n",
" 'JOR': 'Jordan',\n",
" 'KAZ': 'Kazakhstan',\n",
" 'KEN': 'Kenya',\n",
" 'KIR': 'Kiribati',\n",
" 'PRK': 'North Korea',\n",
" 'KOR': 'South Korea',\n",
" 'KVX': 'Kosovo',\n",
" 'KUW': 'Kuwait',\n",
" 'KGZ': 'Kyrgyzstan',\n",
" 'LAO': 'Laos',\n",
" 'LVA': 'Latvia',\n",
" 'LBN': 'Lebanon',\n",
" 'LES': 'Lesotho',\n",
" 'LBR': 'Liberia',\n",
" 'LBY': 'Libya',\n",
" 'LIE': 'Liechtenstein',\n",
" 'LTU': 'Lithuania',\n",
" 'LUX': 'Luxembourg',\n",
" 'MAC': 'Macau',\n",
" 'MAD': 'Madagascar',\n",
" 'MWI': 'Malawi',\n",
" 'MAS': 'Malaysia',\n",
" 'MDV': 'Maldives',\n",
" 'MLI': 'Mali',\n",
" 'MLT': 'Malta',\n",
" 'MHL': 'Marshall Islands',\n",
" 'MTQ': 'Martinique',\n",
" 'MTN': 'Mauritania',\n",
" 'MRI': 'Mauritius',\n",
" 'MYT': 'Mayotte',\n",
" 'MEX': 'Mexico',\n",
" 'FSM': 'Micronesia, Federated States of',\n",
" 'MDA': 'Moldova',\n",
" 'MON': 'Monaco',\n",
" 'MNG': 'Mongolia',\n",
" 'MNE': 'Montenegro',\n",
" 'MSR': 'Montserrat',\n",
" 'MAR': 'Morocco',\n",
" 'MOZ': 'Mozambique',\n",
" 'MYA': 'Myanmar',\n",
" 'NAM': 'Namibia',\n",
" 'NRU': 'Nauru',\n",
" 'NEP': 'Nepal',\n",
" 'NED': 'Netherlands',\n",
" 'NCL': 'New Caledonia',\n",
" 'NZL': 'New Zealand',\n",
" 'NCA': 'Nicaragua',\n",
" 'NIG': 'Niger',\n",
" 'NGA': 'Nigeria',\n",
" 'NIU': 'Niue',\n",
" 'NFK': 'Norfolk Island',\n",
" 'NIR': 'Northern Ireland',\n",
" 'MNP': 'Northern Mariana Islands',\n",
" 'MKD': 'North Macedonia',\n",
" 'NOR': 'Norway',\n",
" 'OMA': 'Oman',\n",
" 'PAK': 'Pakistan',\n",
" 'PLW': 'Palau',\n",
" 'PLE': 'State of Palestine',\n",
" 'PAN': 'Panama',\n",
" 'PNG': 'Papua New Guinea',\n",
" 'PAR': 'Paraguay',\n",
" 'PER': 'Peru',\n",
" 'PHI': 'Philippines',\n",
" 'PCN': 'Pitcairn Islands',\n",
" 'POL': 'Poland',\n",
" 'POR': 'Portugal',\n",
" 'PUR': 'Puerto Rico',\n",
" 'QAT': 'Qatar',\n",
" 'REU': 'Réunion',\n",
" 'ROU': 'Romania',\n",
" 'RUS': 'Russian Federation',\n",
" 'RWA': 'Rwanda',\n",
" 'BLM': 'Saint Barthélemy',\n",
" 'SHN': 'Saint Helena, Ascension and Tristan da Cunha',\n",
" 'SKN': 'Saint Kitts and Nevis',\n",
" 'LCA': 'Saint Lucia',\n",
" 'MAF': 'Saint Martin (French part)',\n",
" 'SPM': 'Saint Pierre and Miquelon',\n",
" 'VIN': 'Saint Vincent and the Grenadines',\n",
" 'SAM': 'Samoa',\n",
" 'SMR': 'San Marino',\n",
" 'STP': 'São Tomé and Príncipe',\n",
" 'KSA': 'Saudi Arabia',\n",
" 'SCO': 'Scotland',\n",
" 'SEN': 'Senegal',\n",
" 'SRB': 'Serbia',\n",
" 'SEY': 'Seychelles',\n",
" 'SLE': 'Sierra Leone',\n",
" 'SIN': 'Singapore',\n",
" 'SXM': 'Sint Maarten (Dutch part)',\n",
" 'SVK': 'Slovakia',\n",
" 'SVN': 'Slovenia',\n",
" 'SOL': 'Solomon Islands',\n",
" 'SOM': 'Somalia',\n",
" 'RSA': 'South Africa',\n",
" 'SGS': 'South Georgia and the South Sandwich Islands',\n",
" 'SSD': 'South Sudan',\n",
" 'ESP': 'Spain',\n",
" 'SRI': 'Sri Lanka',\n",
" 'SDN': 'Sudan',\n",
" 'SUR': 'Suriname',\n",
" 'SJM': 'Svalbard and Jan Mayen',\n",
" 'SWE': 'Sweden',\n",
" 'SUI': 'Switzerland',\n",
" 'SYR': 'Syria',\n",
" 'TPE': 'Taiwan',\n",
" 'TJK': 'Tajikistan',\n",
" 'TAN': 'Tanzania',\n",
" 'THA': 'Thailand',\n",
" 'TLS': 'Timor-Leste',\n",
" 'TOG': 'Togo',\n",
" 'TKL': 'Tokelau',\n",
" 'TGA': 'Tonga',\n",
" 'TRI': 'Trinidad and Tobago',\n",
" 'TUN': 'Tunisia',\n",
" 'TUR': 'Turkey',\n",
" 'TKM': 'Turkmenistan',\n",
" 'TCA': 'Turks and Caicos Islands',\n",
" 'TUV': 'Tuvalu',\n",
" 'UGA': 'Uganda',\n",
" 'UKR': 'Ukraine',\n",
" 'UAE': 'United Arab Emirates',\n",
" 'GBR': 'United Kingdom',\n",
" 'USA': 'United States',\n",
" 'UMI': 'United States Minor Outlying Islands',\n",
" 'VIR': 'United States Virgin Islands',\n",
" 'URU': 'Uruguay',\n",
" 'UZB': 'Uzbekistan',\n",
" 'VAN': 'Vanuatu',\n",
" 'VAT': 'Vatican City State',\n",
" 'VEN': 'Venezuela',\n",
" 'VIE': 'Vietnam',\n",
" 'WAL': 'Wales',\n",
" 'WLF': 'Wallis and Futuna',\n",
" 'ESH': 'Western Sahara',\n",
" 'YEM': 'Yemen',\n",
" 'ZAM': 'Zambia',\n",
" 'ZIM': 'Zimbabwe'}"
]
},
"execution_count": 43,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dict(zip(df_countries['FIFA Code'], df_countries['Full Country Name']))\n",
"pd.Series(df_countries['FIFA Code'].values,index=df_countries['Full Country Name']).to_dict()\n",
"dict_countries = df_countries.set_index('FIFA Code').to_dict()['Full Country Name']\n",
"dict_countries "
]
},
{
"cell_type": "code",
"execution_count": 44,
"metadata": {},
"outputs": [],
"source": [
"df_fbref_outfield['Nationality Cleaned'] = df_fbref_outfield['Nationality Code'].map(dict_countries)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Comp"
]
},
{
"cell_type": "code",
"execution_count": 45,
"metadata": {},
"outputs": [],
"source": [
"df_fbref_outfield['Comp'] = df_fbref_outfield['Comp'].map(dict_league_names)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Primary Position"
]
},
{
"cell_type": "code",
"execution_count": 46,
"metadata": {},
"outputs": [],
"source": [
"df_fbref_outfield['Primary Pos'] = df_fbref_outfield['Pos'].str[:2]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Position Grouped"
]
},
{
"cell_type": "code",
"execution_count": 47,
"metadata": {},
"outputs": [],
"source": [
"# Map grouped positions to DataFrame\n",
"df_fbref_outfield['Position Grouped'] = df_fbref_outfield['Pos'].map(dict_positions_grouped)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Goalkeeper / Outfielder"
]
},
{
"cell_type": "code",
"execution_count": 48,
"metadata": {},
"outputs": [],
"source": [
"# Separate Goalkeeper and Outfielders\n",
"df_fbref_outfield['Outfielder Goalkeeper'] = np.where(df_fbref_outfield['Position Grouped'] == 'Goalkeeper', 'Goalkeeper', 'Outfielder')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"#### 4.1.4. Converting Data Types \n",
"We are required to convert all the columns with their proper data types."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Age\n",
"The calculated `age` column needs to be converted from a float to an integer, with all null values ignored, using to [astype()](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.astype.html) method."
]
},
{
"cell_type": "code",
"execution_count": 49,
"metadata": {},
"outputs": [],
"source": [
"# Redetermine the age using the newly created birth_date column (after formatted to datetime data type)\n",
"\n",
"## Convert age to string\n",
"df_fbref_outfield['Age'] = df_fbref_outfield['Age'].astype(str)\n",
"\n",
"## Fix 20/21 parsing that's throwing in hyphens and other numbers\n",
"df_fbref_outfield['Age'] = df_fbref_outfield['Age'].str[:2]\n",
"\n",
"## Remove all not numeric values use to_numeric with parameter errors='coerce' - it replaces non numeric to NaNs\n",
"df_fbref_outfield['Age'] = pd.to_numeric(df_fbref_outfield['Age'], errors='coerce')\n",
"\n",
"## Convert floats to integers and leave null values\n",
"df_fbref_outfield['Age'] = np.nan_to_num(df_fbref_outfield['Age']).astype(int)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Born (Birth Year)"
]
},
{
"cell_type": "code",
"execution_count": 50,
"metadata": {},
"outputs": [],
"source": [
"# Convert string to integer\n",
"df_fbref_outfield['Born'] = pd.to_numeric(df_fbref_outfield['Born'])"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"#### 4.1.5. Export DataFrame "
]
},
{
"cell_type": "code",
"execution_count": 51,
"metadata": {},
"outputs": [],
"source": [
"# Export DataFrame as a CSV file\n",
"\n",
"## Export a copy to the FBref Engineered Outfield folder called 'latest' (can be overwritten)\n",
"df_fbref_outfield.to_csv(data_dir_fbref + '/engineered/outfield/fbref_outfield_player_stats_combined_latest.csv', index=None, header=True)\n",
"\n",
"## Export a copy to the 'archive' subfolder, including the date\n",
"df_fbref_outfield.to_csv(data_dir_fbref + f'/engineered/outfield/archive/fbref_outfield_player_stats_combined_last_updated_{today}.csv', index=None, header=True)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"### 4.2. Goalkeepers "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"#### 4.2.1. Assign Raw DataFrame to new Engineered DataFrame "
]
},
{
"cell_type": "code",
"execution_count": 52,
"metadata": {},
"outputs": [],
"source": [
"# Assign Raw DataFrame to new Engineered DataFrame\n",
"df_fbref_goalkeeper = df_fbref_goalkeeper_raw"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"#### 4.2.2. Include League Name and League Country for each team "
]
},
{
"cell_type": "code",
"execution_count": 53,
"metadata": {},
"outputs": [],
"source": [
"# Join Teams DataFrame that adds the 'league_name' and 'league_country' columns\n",
"df_fbref_goalkeeper = pd.merge(df_fbref_goalkeeper, df_teams, left_on='Squad', right_on='Team Name', how='left')\n",
"\n",
"# Remove duplicate columns after join (contain '_y') and remove '_x' suffix from kept columns\n",
"df_fbref_goalkeeper = df_fbref_goalkeeper[df_fbref_goalkeeper.columns.drop(list(df_fbref_goalkeeper.filter(regex='_y')))]\n",
"df_fbref_goalkeeper.columns = df_fbref_goalkeeper.columns.str.replace('_x','')"
]
},
{
"cell_type": "code",
"execution_count": 54,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(927, 106)"
]
},
"execution_count": 54,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df_fbref_goalkeeper.shape"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"#### 4.2.3. String Cleaning "
]
},
{
"cell_type": "code",
"execution_count": 55,
"metadata": {},
"outputs": [],
"source": [
"# Remove accents and create lowercase name\n",
"df_fbref_goalkeeper['Player Lower'] = (df_fbref_goalkeeper['Player']\n",
" .str.normalize('NFKD')\n",
" .str.encode('ascii', errors='ignore')\n",
" .str.decode('utf-8')\n",
" .str.lower()\n",
" )"
]
},
{
"cell_type": "code",
"execution_count": 56,
"metadata": {},
"outputs": [],
"source": [
"# First Name Lower\n",
"df_fbref_goalkeeper['First Name Lower'] = df_fbref_goalkeeper['Player Lower'].str.rsplit(' ', 0).str[0]\n",
"\n",
"# Last Name Lower\n",
"df_fbref_goalkeeper['Last Name Lower'] = df_fbref_goalkeeper['Player Lower'].str.rsplit(' ', 1).str[-1]\n",
"\n",
"# First Initial Lower\n",
"df_fbref_goalkeeper['First Initial Lower'] = df_fbref_goalkeeper['Player Lower'].astype(str).str[0]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### League Country lower"
]
},
{
"cell_type": "code",
"execution_count": 57,
"metadata": {},
"outputs": [],
"source": [
"# Remove accents and create lowercase name\n",
"df_fbref_goalkeeper['Team Country Lower'] = (df_fbref_goalkeeper['Team Country']\n",
" .str.normalize('NFKD')\n",
" .str.encode('ascii', errors='ignore')\n",
" .str.decode('utf-8')\n",
" .str.lower()\n",
" )"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Countries"
]
},
{
"cell_type": "code",
"execution_count": 58,
"metadata": {},
"outputs": [],
"source": [
"# Extract the nationality code\n",
"df_fbref_goalkeeper['Nationality Code'] = df_fbref_goalkeeper['Nation'].str.strip().str[-3:]"
]
},
{
"cell_type": "code",
"execution_count": 59,
"metadata": {},
"outputs": [],
"source": [
"df_fbref_goalkeeper['Nationality Cleaned'] = df_fbref_goalkeeper['Nationality Code'].map(dict_countries)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Comp"
]
},
{
"cell_type": "code",
"execution_count": 60,
"metadata": {},
"outputs": [],
"source": [
"df_fbref_goalkeeper['Comp'] = df_fbref_goalkeeper['Comp'].map(dict_league_names)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Primary Position"
]
},
{
"cell_type": "code",
"execution_count": 61,
"metadata": {},
"outputs": [],
"source": [
"df_fbref_goalkeeper['Primary Pos'] = df_fbref_goalkeeper['Pos'].str[:2]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Position Grouped"
]
},
{
"cell_type": "code",
"execution_count": 62,
"metadata": {},
"outputs": [],
"source": [
"# Map grouped positions to DataFrame\n",
"df_fbref_goalkeeper['Position Grouped'] = df_fbref_goalkeeper['Pos'].map(dict_positions_grouped)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"#### 4.2.4. Converting Data Types \n",
"We are required to convert all the columns with their proper data types."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Age\n",
"The calculated `age` column needs to be converted from a float to an integer, with all null values ignored, using to [astype()](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.astype.html) method."
]
},
{
"cell_type": "code",
"execution_count": 63,
"metadata": {},
"outputs": [],
"source": [
"# Redetermine the age using the newly created birth_date column (after formatted to datetime data type)\n",
"\n",
"## Convert age to string\n",
"df_fbref_goalkeeper['Age'] = df_fbref_goalkeeper['Age'].astype(str)\n",
"\n",
"## Fix 20/21 parsing that's throwing in hyphens and other numbers\n",
"df_fbref_goalkeeper['Age'] = df_fbref_goalkeeper['Age'].str[:2]\n",
"\n",
"## Remove all not numeric values use to_numeric with parameter errors='coerce' - it replaces non numeric to NaNs\n",
"df_fbref_goalkeeper['Age'] = pd.to_numeric(df_fbref_goalkeeper['Age'], errors='coerce')\n",
"\n",
"## Convert floats to integers and leave null values\n",
"df_fbref_goalkeeper['Age'] = np.nan_to_num(df_fbref_goalkeeper['Age']).astype(int)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Born (Birth Year)"
]
},
{
"cell_type": "code",
"execution_count": 64,
"metadata": {},
"outputs": [],
"source": [
"# Convert string to integer\n",
"df_fbref_goalkeeper['Born'] = pd.to_numeric(df_fbref_goalkeeper['Born'])"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"#### 4.2.5. Export DataFrame "
]
},
{
"cell_type": "code",
"execution_count": 65,
"metadata": {},
"outputs": [],
"source": [
"# Export DataFrame as a CSV file\n",
"\n",
"## Export a copy to the FBref Engineered Outfield folder called 'latest' (can be overwritten)\n",
"df_fbref_goalkeeper.to_csv(data_dir_fbref + '/engineered/goalkeeper/fbref_goalkeeper_stats_combined_latest.csv', index=None, header=True)\n",
"\n",
"## Export a copy to the 'archive' subfolder, including the date\n",
"df_fbref_goalkeeper.to_csv(data_dir_fbref + f'/engineered/goalkeeper/archive/fbref_goalkeeper_stats_combined_last_updated_{today}.csv', index=None, header=True)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"### 4.3. Players and Goalkeepers Combined "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"#### 4.3.1. Concatenate DataFrames \n",
"Union together both datasets."
]
},
{
"cell_type": "code",
"execution_count": 66,
"metadata": {},
"outputs": [],
"source": [
"df_fbref_outfield_goakeeper = pd.concat([df_fbref_outfield, df_fbref_goalkeeper])"
]
},
{
"cell_type": "code",
"execution_count": 67,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(12753, 176)"
]
},
"execution_count": 67,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df_fbref_outfield.shape"
]
},
{
"cell_type": "code",
"execution_count": 68,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(927, 115)"
]
},
"execution_count": 68,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df_fbref_goalkeeper.shape"
]
},
{
"cell_type": "code",
"execution_count": 69,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(13680, 205)"
]
},
"execution_count": 69,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df_fbref_outfield_goakeeper.shape"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"#### 4.3.2. Dedupe Columns "
]
},
{
"cell_type": "code",
"execution_count": 70,
"metadata": {},
"outputs": [],
"source": [
"# Drop duplicate columns\n",
"df_fbref_outfield_goakeeper = df_fbref_outfield_goakeeper.loc[:,~df_fbref_outfield_goakeeper.columns.duplicated()]"
]
},
{
"cell_type": "code",
"execution_count": 71,
"metadata": {},
"outputs": [],
"source": [
"# Remove duplicate columns after join (contain '_y') and remove '_x' suffix from kept columns\n",
"df_fbref_outfield_goakeeper = df_fbref_outfield_goakeeper[df_fbref_outfield_goakeeper.columns.drop(list(df_fbref_outfield_goakeeper.filter(regex='_y')))]\n",
"df_fbref_outfield_goakeeper.columns = df_fbref_outfield_goakeeper.columns.str.replace('_x','')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"#### 4.3.3. Dedupe Rows "
]
},
{
"cell_type": "code",
"execution_count": 72,
"metadata": {},
"outputs": [],
"source": [
"df_fbref_outfield_goakeeper = df_fbref_outfield_goakeeper.drop_duplicates()"
]
},
{
"cell_type": "code",
"execution_count": 73,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(13680, 205)"
]
},
"execution_count": 73,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df_fbref_outfield_goakeeper.shape"
]
},
{
"cell_type": "code",
"execution_count": 74,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" Player \n",
" Nation \n",
" Pos \n",
" Squad \n",
" Comp \n",
" Age \n",
" Born \n",
" MP \n",
" Starts \n",
" Min \n",
" 90s \n",
" Gls \n",
" Ast \n",
" G-PK \n",
" PK \n",
" PKatt \n",
" CrdY \n",
" CrdR \n",
" Gls.1 \n",
" Ast.1 \n",
" G+A \n",
" G-PK.1 \n",
" G+A-PK \n",
" xG \n",
" npxG \n",
" xA \n",
" npxG+xA \n",
" xG.1 \n",
" xA.1 \n",
" xG+xA \n",
" npxG.1 \n",
" npxG+xA.1 \n",
" Matches \n",
" Sh \n",
" SoT \n",
" SoT% \n",
" Sh/90 \n",
" SoT/90 \n",
" G/Sh \n",
" G/SoT \n",
" Dist \n",
" FK \n",
" npxG/Sh \n",
" G-xG \n",
" np:G-xG \n",
" Cmp \n",
" Att \n",
" Cmp% \n",
" TotDist \n",
" PrgDist \n",
" Cmp.1 \n",
" Att.1 \n",
" Cmp%.1 \n",
" Cmp.2 \n",
" Att.2 \n",
" Cmp%.2 \n",
" Cmp.3 \n",
" Att.3 \n",
" Cmp%.3 \n",
" A-xA \n",
" KP \n",
" 1/3 \n",
" PPA \n",
" CrsPA \n",
" Prog \n",
" Live \n",
" Dead \n",
" TB \n",
" Press \n",
" Sw \n",
" Crs \n",
" CK \n",
" In \n",
" Out \n",
" Str \n",
" Ground \n",
" Low \n",
" High \n",
" Left \n",
" Right \n",
" Head \n",
" TI \n",
" Other \n",
" Off \n",
" Out.1 \n",
" Int \n",
" Blocks \n",
" SCA \n",
" SCA90 \n",
" PassLive \n",
" PassDead \n",
" Drib \n",
" Fld \n",
" Def \n",
" GCA \n",
" GCA90 \n",
" PassLive.1 \n",
" PassDead.1 \n",
" Drib.1 \n",
" Sh.1 \n",
" Fld.1 \n",
" Def.1 \n",
" Tkl \n",
" TklW \n",
" Def 3rd \n",
" Mid 3rd \n",
" Att 3rd \n",
" Tkl.1 \n",
" Tkl% \n",
" Past \n",
" Succ \n",
" % \n",
" Def 3rd.1 \n",
" Mid 3rd.1 \n",
" Att 3rd.1 \n",
" ShSv \n",
" Pass \n",
" Tkl+Int \n",
" Clr \n",
" Err \n",
" Touches \n",
" Def Pen \n",
" Att Pen \n",
" Succ% \n",
" #Pl \n",
" Megs \n",
" Carries \n",
" CPA \n",
" Mis \n",
" Dis \n",
" Targ \n",
" Rec \n",
" Rec% \n",
" Prog.1 \n",
" Mn/MP \n",
" Min% \n",
" Mn/Start \n",
" Compl \n",
" Subs \n",
" Mn/Sub \n",
" unSub \n",
" PPM \n",
" onG \n",
" onGA \n",
" +/- \n",
" +/-90 \n",
" On-Off \n",
" onxG \n",
" onxGA \n",
" xG+/- \n",
" xG+/-90 \n",
" On-Off.1 \n",
" 2CrdY \n",
" Fls \n",
" PKwon \n",
" PKcon \n",
" OG \n",
" Recov \n",
" Won \n",
" Lost \n",
" Won% \n",
" League Name \n",
" League ID \n",
" Season \n",
" Team Name \n",
" Team Country \n",
" Player Lower \n",
" First Name Lower \n",
" Last Name Lower \n",
" First Initial Lower \n",
" Team Country Lower \n",
" Nationality Code \n",
" Nationality Cleaned \n",
" Primary Pos \n",
" Position Grouped \n",
" Outfielder Goalkeeper \n",
" GA \n",
" GA90 \n",
" SoTA \n",
" Saves \n",
" Save% \n",
" W \n",
" D \n",
" L \n",
" CS \n",
" CS% \n",
" PKA \n",
" PKsv \n",
" PKm \n",
" Save%.1 \n",
" PSxG \n",
" PSxG/SoT \n",
" PSxG+/- \n",
" /90 \n",
" Thr \n",
" Launch% \n",
" AvgLen \n",
" Launch%.1 \n",
" AvgLen.1 \n",
" Opp \n",
" Stp \n",
" Stp% \n",
" #OPA \n",
" #OPA/90 \n",
" AvgDist \n",
" \n",
" \n",
" \n",
" \n",
" 0 \n",
" Aaron Cresswell \n",
" eng ENG \n",
" DF \n",
" West Ham \n",
" Premier League \n",
" 27 \n",
" 1989.0 \n",
" 36 \n",
" 35 \n",
" 3069.0 \n",
" 34.1 \n",
" 1 \n",
" 3 \n",
" 1 \n",
" 0 \n",
" 0 \n",
" 7 \n",
" 0 \n",
" 0.03 \n",
" 0.09 \n",
" 0.12 \n",
" 0.03 \n",
" 0.12 \n",
" 0.8 \n",
" 0.8 \n",
" 2.8 \n",
" 3.6 \n",
" 0.02 \n",
" 0.08 \n",
" 0.10 \n",
" 0.02 \n",
" 0.10 \n",
" Matches \n",
" 21.0 \n",
" 6.0 \n",
" 28.6 \n",
" 0.62 \n",
" 0.18 \n",
" 0.05 \n",
" 0.17 \n",
" 28.1 \n",
" 8.0 \n",
" 0.04 \n",
" 0.2 \n",
" 0.2 \n",
" 1224.0 \n",
" 1708.0 \n",
" 71.7 \n",
" 23519.0 \n",
" 10212.0 \n",
" 560.0 \n",
" 623.0 \n",
" 89.9 \n",
" 472.0 \n",
" 587.0 \n",
" 80.4 \n",
" 183.0 \n",
" 449.0 \n",
" 40.8 \n",
" 0.2 \n",
" 35.0 \n",
" 117.0 \n",
" 21.0 \n",
" 14.0 \n",
" 96.0 \n",
" 1343.0 \n",
" 365.0 \n",
" 1.0 \n",
" 222.0 \n",
" 83.0 \n",
" 93.0 \n",
" 67.0 \n",
" 35.0 \n",
" 15.0 \n",
" 9.0 \n",
" 893.0 \n",
" 293.0 \n",
" 522.0 \n",
" 1329.0 \n",
" 78.0 \n",
" 59.0 \n",
" 210.0 \n",
" 5.0 \n",
" 15.0 \n",
" 44.0 \n",
" 39.0 \n",
" 52.0 \n",
" 62.0 \n",
" 1.82 \n",
" 35.0 \n",
" 21.0 \n",
" 1.0 \n",
" 3.0 \n",
" 0.0 \n",
" 9.0 \n",
" 0.26 \n",
" 6.0 \n",
" 3.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 38.0 \n",
" 18.0 \n",
" 15.0 \n",
" 18.0 \n",
" 5.0 \n",
" 17.0 \n",
" 53.1 \n",
" 15.0 \n",
" 115.0 \n",
" 32.1 \n",
" 181.0 \n",
" 123.0 \n",
" 54.0 \n",
" 0.0 \n",
" 38.0 \n",
" 90.0 \n",
" 133.0 \n",
" 0.0 \n",
" 2050.0 \n",
" 125.0 \n",
" 17.0 \n",
" 33.3 \n",
" 7.0 \n",
" 0.0 \n",
" 1071.0 \n",
" 2.0 \n",
" 18.0 \n",
" 19.0 \n",
" 1171.0 \n",
" 1094.0 \n",
" 93.4 \n",
" 31.0 \n",
" 85 \n",
" 89.7 \n",
" NaN \n",
" 30.0 \n",
" 1 \n",
" NaN \n",
" 1 \n",
" 1.14 \n",
" 45.0 \n",
" 60.0 \n",
" -15.0 \n",
" -0.44 \n",
" 0.84 \n",
" 38.0 \n",
" 51.5 \n",
" -13.5 \n",
" -0.40 \n",
" 1.09 \n",
" 0.0 \n",
" 20 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 277.0 \n",
" 70.0 \n",
" 57.0 \n",
" 55.1 \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2017-2018 \n",
" West Ham \n",
" England \n",
" aaron cresswell \n",
" aaron \n",
" cresswell \n",
" a \n",
" england \n",
" ENG \n",
" England \n",
" DF \n",
" Defender \n",
" Outfielder \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" \n",
" \n",
" 1 \n",
" Aaron Hunt \n",
" de GER \n",
" MF,FW \n",
" Hamburger SV \n",
" Bundeliga \n",
" 30 \n",
" 1986.0 \n",
" 28 \n",
" 26 \n",
" 2081.0 \n",
" 23.1 \n",
" 3 \n",
" 2 \n",
" 2 \n",
" 1 \n",
" 1 \n",
" 1 \n",
" 0 \n",
" 0.13 \n",
" 0.09 \n",
" 0.22 \n",
" 0.09 \n",
" 0.17 \n",
" 2.8 \n",
" 2.1 \n",
" 5.6 \n",
" 7.6 \n",
" 0.12 \n",
" 0.23 \n",
" 0.35 \n",
" 0.09 \n",
" 0.32 \n",
" Matches \n",
" 27.0 \n",
" 6.0 \n",
" 22.2 \n",
" 1.17 \n",
" 0.26 \n",
" 0.07 \n",
" 0.33 \n",
" 23.4 \n",
" 10.0 \n",
" 0.08 \n",
" 0.2 \n",
" -0.1 \n",
" 883.0 \n",
" 1229.0 \n",
" 71.8 \n",
" 16889.0 \n",
" 5315.0 \n",
" 406.0 \n",
" 480.0 \n",
" 84.6 \n",
" 292.0 \n",
" 376.0 \n",
" 77.7 \n",
" 165.0 \n",
" 303.0 \n",
" 54.5 \n",
" -3.6 \n",
" 65.0 \n",
" 83.0 \n",
" 31.0 \n",
" 5.0 \n",
" 97.0 \n",
" 977.0 \n",
" 252.0 \n",
" 11.0 \n",
" 245.0 \n",
" 67.0 \n",
" 66.0 \n",
" 123.0 \n",
" 35.0 \n",
" 41.0 \n",
" 14.0 \n",
" 672.0 \n",
" 236.0 \n",
" 321.0 \n",
" 999.0 \n",
" 137.0 \n",
" 42.0 \n",
" 23.0 \n",
" 9.0 \n",
" 5.0 \n",
" 29.0 \n",
" 29.0 \n",
" 49.0 \n",
" 102.0 \n",
" 4.25 \n",
" 54.0 \n",
" 43.0 \n",
" 1.0 \n",
" 2.0 \n",
" 1.0 \n",
" 6.0 \n",
" 0.25 \n",
" 5.0 \n",
" 1.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 30.0 \n",
" 22.0 \n",
" 12.0 \n",
" 16.0 \n",
" 2.0 \n",
" 5.0 \n",
" 13.5 \n",
" 32.0 \n",
" 135.0 \n",
" 27.9 \n",
" 102.0 \n",
" 261.0 \n",
" 121.0 \n",
" 0.0 \n",
" 28.0 \n",
" 44.0 \n",
" 21.0 \n",
" 0.0 \n",
" 1475.0 \n",
" 28.0 \n",
" 68.0 \n",
" 58.3 \n",
" 23.0 \n",
" 4.0 \n",
" 892.0 \n",
" 7.0 \n",
" 45.0 \n",
" 42.0 \n",
" 1176.0 \n",
" 893.0 \n",
" 75.9 \n",
" 178.0 \n",
" 74 \n",
" 68.0 \n",
" NaN \n",
" 14.0 \n",
" 2 \n",
" NaN \n",
" 0 \n",
" 1.07 \n",
" 22.0 \n",
" 34.0 \n",
" -12.0 \n",
" -0.52 \n",
" 0.58 \n",
" 27.0 \n",
" 31.3 \n",
" -4.3 \n",
" -0.18 \n",
" 0.94 \n",
" 0.0 \n",
" 27 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 213.0 \n",
" 22.0 \n",
" 37.0 \n",
" 37.3 \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2017-2018 \n",
" Hamburger SV \n",
" Germany \n",
" aaron hunt \n",
" aaron \n",
" hunt \n",
" a \n",
" germany \n",
" GER \n",
" Germany \n",
" MF \n",
" Midfielder \n",
" Outfielder \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" \n",
" \n",
" 2 \n",
" Aaron Lennon \n",
" eng ENG \n",
" MF \n",
" Burnley \n",
" Premier League \n",
" 30 \n",
" 1987.0 \n",
" 14 \n",
" 13 \n",
" 1118.0 \n",
" 12.4 \n",
" 0 \n",
" 2 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 2 \n",
" 0 \n",
" 0.00 \n",
" 0.16 \n",
" 0.16 \n",
" 0.00 \n",
" 0.16 \n",
" 0.6 \n",
" 0.6 \n",
" 1.4 \n",
" 2.0 \n",
" 0.05 \n",
" 0.11 \n",
" 0.16 \n",
" 0.05 \n",
" 0.16 \n",
" Matches \n",
" 10.0 \n",
" 4.0 \n",
" 40.0 \n",
" 0.81 \n",
" 0.32 \n",
" 0.00 \n",
" 0.00 \n",
" 16.6 \n",
" 0.0 \n",
" 0.06 \n",
" -0.6 \n",
" -0.6 \n",
" 204.0 \n",
" 294.0 \n",
" 69.4 \n",
" 3223.0 \n",
" 887.0 \n",
" 116.0 \n",
" 142.0 \n",
" 81.7 \n",
" 68.0 \n",
" 92.0 \n",
" 73.9 \n",
" 17.0 \n",
" 34.0 \n",
" 50.0 \n",
" 0.6 \n",
" 8.0 \n",
" 11.0 \n",
" 13.0 \n",
" 5.0 \n",
" 22.0 \n",
" 289.0 \n",
" 5.0 \n",
" 0.0 \n",
" 61.0 \n",
" 5.0 \n",
" 19.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 193.0 \n",
" 51.0 \n",
" 50.0 \n",
" 27.0 \n",
" 250.0 \n",
" 7.0 \n",
" 4.0 \n",
" 3.0 \n",
" 0.0 \n",
" 9.0 \n",
" 8.0 \n",
" 30.0 \n",
" 18.0 \n",
" 1.45 \n",
" 12.0 \n",
" 0.0 \n",
" 1.0 \n",
" 1.0 \n",
" 0.0 \n",
" 3.0 \n",
" 0.24 \n",
" 2.0 \n",
" 0.0 \n",
" 0.0 \n",
" 1.0 \n",
" 0.0 \n",
" 0.0 \n",
" 18.0 \n",
" 10.0 \n",
" 6.0 \n",
" 11.0 \n",
" 1.0 \n",
" 4.0 \n",
" 19.0 \n",
" 17.0 \n",
" 61.0 \n",
" 26.3 \n",
" 74.0 \n",
" 102.0 \n",
" 56.0 \n",
" 0.0 \n",
" 24.0 \n",
" 31.0 \n",
" 9.0 \n",
" 0.0 \n",
" 424.0 \n",
" 19.0 \n",
" 36.0 \n",
" 48.0 \n",
" 12.0 \n",
" 2.0 \n",
" 290.0 \n",
" 12.0 \n",
" 9.0 \n",
" 25.0 \n",
" 353.0 \n",
" 259.0 \n",
" 73.4 \n",
" 41.0 \n",
" 80 \n",
" 32.7 \n",
" NaN \n",
" 6.0 \n",
" 1 \n",
" NaN \n",
" 0 \n",
" 1.43 \n",
" 17.0 \n",
" 15.0 \n",
" 2.0 \n",
" 0.16 \n",
" 0.36 \n",
" 13.8 \n",
" 15.4 \n",
" -1.5 \n",
" -0.12 \n",
" 0.49 \n",
" 0.0 \n",
" 12 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 80.0 \n",
" 7.0 \n",
" 15.0 \n",
" 31.8 \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2017-2018 \n",
" Burnley \n",
" England \n",
" aaron lennon \n",
" aaron \n",
" lennon \n",
" a \n",
" england \n",
" ENG \n",
" England \n",
" MF \n",
" Midfielder \n",
" Outfielder \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" \n",
" \n",
" 3 \n",
" Aaron Lennon \n",
" eng ENG \n",
" FW,MF \n",
" Everton \n",
" Premier League \n",
" 30 \n",
" 1987.0 \n",
" 15 \n",
" 9 \n",
" 793.0 \n",
" 8.8 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 0.00 \n",
" 0.3 \n",
" 0.3 \n",
" 0.5 \n",
" 0.8 \n",
" 0.04 \n",
" 0.05 \n",
" 0.09 \n",
" 0.04 \n",
" 0.09 \n",
" Matches \n",
" 4.0 \n",
" 1.0 \n",
" 25.0 \n",
" 0.45 \n",
" 0.11 \n",
" 0.00 \n",
" 0.00 \n",
" 14.8 \n",
" 0.0 \n",
" 0.08 \n",
" -0.3 \n",
" -0.3 \n",
" 152.0 \n",
" 214.0 \n",
" 71.0 \n",
" 2286.0 \n",
" 672.0 \n",
" 92.0 \n",
" 115.0 \n",
" 80.0 \n",
" 53.0 \n",
" 69.0 \n",
" 76.8 \n",
" 5.0 \n",
" 13.0 \n",
" 38.5 \n",
" -0.5 \n",
" 5.0 \n",
" 9.0 \n",
" 3.0 \n",
" 2.0 \n",
" 17.0 \n",
" 199.0 \n",
" 15.0 \n",
" 0.0 \n",
" 49.0 \n",
" 2.0 \n",
" 8.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 129.0 \n",
" 47.0 \n",
" 38.0 \n",
" 29.0 \n",
" 159.0 \n",
" 10.0 \n",
" 14.0 \n",
" 0.0 \n",
" 1.0 \n",
" 3.0 \n",
" 7.0 \n",
" 15.0 \n",
" 16.0 \n",
" 1.82 \n",
" 11.0 \n",
" 0.0 \n",
" 1.0 \n",
" 2.0 \n",
" 0.0 \n",
" 4.0 \n",
" 0.45 \n",
" 2.0 \n",
" 0.0 \n",
" 0.0 \n",
" 1.0 \n",
" 1.0 \n",
" 0.0 \n",
" 18.0 \n",
" 10.0 \n",
" 9.0 \n",
" 7.0 \n",
" 2.0 \n",
" 5.0 \n",
" 25.0 \n",
" 15.0 \n",
" 38.0 \n",
" 19.3 \n",
" 49.0 \n",
" 102.0 \n",
" 46.0 \n",
" 0.0 \n",
" 18.0 \n",
" 25.0 \n",
" 9.0 \n",
" 0.0 \n",
" 322.0 \n",
" 7.0 \n",
" 22.0 \n",
" 35.0 \n",
" 8.0 \n",
" 1.0 \n",
" 186.0 \n",
" 8.0 \n",
" 9.0 \n",
" 17.0 \n",
" 288.0 \n",
" 195.0 \n",
" 67.7 \n",
" 33.0 \n",
" 53 \n",
" 23.2 \n",
" NaN \n",
" 2.0 \n",
" 6 \n",
" NaN \n",
" 0 \n",
" 1.27 \n",
" 15.0 \n",
" 14.0 \n",
" 1.0 \n",
" 0.11 \n",
" 0.63 \n",
" 12.0 \n",
" 13.7 \n",
" -1.6 \n",
" -0.19 \n",
" 0.13 \n",
" 0.0 \n",
" 9 \n",
" 2.0 \n",
" 0.0 \n",
" 0.0 \n",
" 50.0 \n",
" 6.0 \n",
" 12.0 \n",
" 33.3 \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2017-2018 \n",
" Everton \n",
" England \n",
" aaron lennon \n",
" aaron \n",
" lennon \n",
" a \n",
" england \n",
" ENG \n",
" England \n",
" FW \n",
" Forward \n",
" Outfielder \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" \n",
" \n",
" 4 \n",
" Aaron Mooy \n",
" au AUS \n",
" MF \n",
" Huddersfield \n",
" Premier League \n",
" 26 \n",
" 1990.0 \n",
" 36 \n",
" 34 \n",
" 3067.0 \n",
" 34.1 \n",
" 4 \n",
" 3 \n",
" 3 \n",
" 1 \n",
" 1 \n",
" 4 \n",
" 0 \n",
" 0.12 \n",
" 0.09 \n",
" 0.21 \n",
" 0.09 \n",
" 0.18 \n",
" 2.6 \n",
" 1.8 \n",
" 3.1 \n",
" 4.9 \n",
" 0.08 \n",
" 0.09 \n",
" 0.17 \n",
" 0.05 \n",
" 0.14 \n",
" Matches \n",
" 28.0 \n",
" 6.0 \n",
" 21.4 \n",
" 0.82 \n",
" 0.18 \n",
" 0.11 \n",
" 0.50 \n",
" 22.0 \n",
" 3.0 \n",
" 0.06 \n",
" 1.4 \n",
" 1.2 \n",
" 1561.0 \n",
" 2067.0 \n",
" 75.5 \n",
" 27911.0 \n",
" 7921.0 \n",
" 783.0 \n",
" 876.0 \n",
" 89.4 \n",
" 540.0 \n",
" 678.0 \n",
" 79.6 \n",
" 196.0 \n",
" 397.0 \n",
" 49.4 \n",
" -0.1 \n",
" 48.0 \n",
" 167.0 \n",
" 27.0 \n",
" 9.0 \n",
" 163.0 \n",
" 1897.0 \n",
" 170.0 \n",
" 1.0 \n",
" 422.0 \n",
" 100.0 \n",
" 85.0 \n",
" 77.0 \n",
" 35.0 \n",
" 21.0 \n",
" 5.0 \n",
" 1293.0 \n",
" 283.0 \n",
" 491.0 \n",
" 507.0 \n",
" 1444.0 \n",
" 77.0 \n",
" 5.0 \n",
" 4.0 \n",
" 6.0 \n",
" 38.0 \n",
" 60.0 \n",
" 60.0 \n",
" 73.0 \n",
" 2.14 \n",
" 54.0 \n",
" 16.0 \n",
" 0.0 \n",
" 1.0 \n",
" 2.0 \n",
" 5.0 \n",
" 0.15 \n",
" 4.0 \n",
" 1.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 105.0 \n",
" 55.0 \n",
" 38.0 \n",
" 54.0 \n",
" 13.0 \n",
" 32.0 \n",
" 44.4 \n",
" 40.0 \n",
" 193.0 \n",
" 29.5 \n",
" 192.0 \n",
" 355.0 \n",
" 107.0 \n",
" 2.0 \n",
" 52.0 \n",
" 151.0 \n",
" 70.0 \n",
" 0.0 \n",
" 2496.0 \n",
" 65.0 \n",
" 32.0 \n",
" 53.2 \n",
" 26.0 \n",
" 0.0 \n",
" 1543.0 \n",
" 6.0 \n",
" 33.0 \n",
" 60.0 \n",
" 1710.0 \n",
" 1540.0 \n",
" 90.1 \n",
" 85.0 \n",
" 85 \n",
" 89.7 \n",
" NaN \n",
" 29.0 \n",
" 2 \n",
" NaN \n",
" 0 \n",
" 0.94 \n",
" 25.0 \n",
" 52.0 \n",
" -27.0 \n",
" -0.79 \n",
" -0.03 \n",
" 28.7 \n",
" 49.8 \n",
" -21.1 \n",
" -0.62 \n",
" -0.01 \n",
" 0.0 \n",
" 26 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 455.0 \n",
" 35.0 \n",
" 42.0 \n",
" 45.5 \n",
" Big-5-European-Leagues \n",
" Big5 \n",
" 2017-2018 \n",
" Huddersfield \n",
" England \n",
" aaron mooy \n",
" aaron \n",
" mooy \n",
" a \n",
" england \n",
" AUS \n",
" Australia \n",
" MF \n",
" Midfielder \n",
" Outfielder \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" NaN \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Player Nation Pos Squad Comp Age Born \\\n",
"0 Aaron Cresswell eng ENG DF West Ham Premier League 27 1989.0 \n",
"1 Aaron Hunt de GER MF,FW Hamburger SV Bundeliga 30 1986.0 \n",
"2 Aaron Lennon eng ENG MF Burnley Premier League 30 1987.0 \n",
"3 Aaron Lennon eng ENG FW,MF Everton Premier League 30 1987.0 \n",
"4 Aaron Mooy au AUS MF Huddersfield Premier League 26 1990.0 \n",
"\n",
" MP Starts Min 90s Gls Ast G-PK PK PKatt CrdY CrdR Gls.1 \\\n",
"0 36 35 3069.0 34.1 1 3 1 0 0 7 0 0.03 \n",
"1 28 26 2081.0 23.1 3 2 2 1 1 1 0 0.13 \n",
"2 14 13 1118.0 12.4 0 2 0 0 0 2 0 0.00 \n",
"3 15 9 793.0 8.8 0 0 0 0 0 0 0 0.00 \n",
"4 36 34 3067.0 34.1 4 3 3 1 1 4 0 0.12 \n",
"\n",
" Ast.1 G+A G-PK.1 G+A-PK xG npxG xA npxG+xA xG.1 xA.1 xG+xA \\\n",
"0 0.09 0.12 0.03 0.12 0.8 0.8 2.8 3.6 0.02 0.08 0.10 \n",
"1 0.09 0.22 0.09 0.17 2.8 2.1 5.6 7.6 0.12 0.23 0.35 \n",
"2 0.16 0.16 0.00 0.16 0.6 0.6 1.4 2.0 0.05 0.11 0.16 \n",
"3 0.00 0.00 0.00 0.00 0.3 0.3 0.5 0.8 0.04 0.05 0.09 \n",
"4 0.09 0.21 0.09 0.18 2.6 1.8 3.1 4.9 0.08 0.09 0.17 \n",
"\n",
" npxG.1 npxG+xA.1 Matches Sh SoT SoT% Sh/90 SoT/90 G/Sh G/SoT \\\n",
"0 0.02 0.10 Matches 21.0 6.0 28.6 0.62 0.18 0.05 0.17 \n",
"1 0.09 0.32 Matches 27.0 6.0 22.2 1.17 0.26 0.07 0.33 \n",
"2 0.05 0.16 Matches 10.0 4.0 40.0 0.81 0.32 0.00 0.00 \n",
"3 0.04 0.09 Matches 4.0 1.0 25.0 0.45 0.11 0.00 0.00 \n",
"4 0.05 0.14 Matches 28.0 6.0 21.4 0.82 0.18 0.11 0.50 \n",
"\n",
" Dist FK npxG/Sh G-xG np:G-xG Cmp Att Cmp% TotDist PrgDist \\\n",
"0 28.1 8.0 0.04 0.2 0.2 1224.0 1708.0 71.7 23519.0 10212.0 \n",
"1 23.4 10.0 0.08 0.2 -0.1 883.0 1229.0 71.8 16889.0 5315.0 \n",
"2 16.6 0.0 0.06 -0.6 -0.6 204.0 294.0 69.4 3223.0 887.0 \n",
"3 14.8 0.0 0.08 -0.3 -0.3 152.0 214.0 71.0 2286.0 672.0 \n",
"4 22.0 3.0 0.06 1.4 1.2 1561.0 2067.0 75.5 27911.0 7921.0 \n",
"\n",
" Cmp.1 Att.1 Cmp%.1 Cmp.2 Att.2 Cmp%.2 Cmp.3 Att.3 Cmp%.3 A-xA \\\n",
"0 560.0 623.0 89.9 472.0 587.0 80.4 183.0 449.0 40.8 0.2 \n",
"1 406.0 480.0 84.6 292.0 376.0 77.7 165.0 303.0 54.5 -3.6 \n",
"2 116.0 142.0 81.7 68.0 92.0 73.9 17.0 34.0 50.0 0.6 \n",
"3 92.0 115.0 80.0 53.0 69.0 76.8 5.0 13.0 38.5 -0.5 \n",
"4 783.0 876.0 89.4 540.0 678.0 79.6 196.0 397.0 49.4 -0.1 \n",
"\n",
" KP 1/3 PPA CrsPA Prog Live Dead TB Press Sw Crs \\\n",
"0 35.0 117.0 21.0 14.0 96.0 1343.0 365.0 1.0 222.0 83.0 93.0 \n",
"1 65.0 83.0 31.0 5.0 97.0 977.0 252.0 11.0 245.0 67.0 66.0 \n",
"2 8.0 11.0 13.0 5.0 22.0 289.0 5.0 0.0 61.0 5.0 19.0 \n",
"3 5.0 9.0 3.0 2.0 17.0 199.0 15.0 0.0 49.0 2.0 8.0 \n",
"4 48.0 167.0 27.0 9.0 163.0 1897.0 170.0 1.0 422.0 100.0 85.0 \n",
"\n",
" CK In Out Str Ground Low High Left Right Head TI \\\n",
"0 67.0 35.0 15.0 9.0 893.0 293.0 522.0 1329.0 78.0 59.0 210.0 \n",
"1 123.0 35.0 41.0 14.0 672.0 236.0 321.0 999.0 137.0 42.0 23.0 \n",
"2 0.0 0.0 0.0 0.0 193.0 51.0 50.0 27.0 250.0 7.0 4.0 \n",
"3 0.0 0.0 0.0 0.0 129.0 47.0 38.0 29.0 159.0 10.0 14.0 \n",
"4 77.0 35.0 21.0 5.0 1293.0 283.0 491.0 507.0 1444.0 77.0 5.0 \n",
"\n",
" Other Off Out.1 Int Blocks SCA SCA90 PassLive PassDead Drib \\\n",
"0 5.0 15.0 44.0 39.0 52.0 62.0 1.82 35.0 21.0 1.0 \n",
"1 9.0 5.0 29.0 29.0 49.0 102.0 4.25 54.0 43.0 1.0 \n",
"2 3.0 0.0 9.0 8.0 30.0 18.0 1.45 12.0 0.0 1.0 \n",
"3 0.0 1.0 3.0 7.0 15.0 16.0 1.82 11.0 0.0 1.0 \n",
"4 4.0 6.0 38.0 60.0 60.0 73.0 2.14 54.0 16.0 0.0 \n",
"\n",
" Fld Def GCA GCA90 PassLive.1 PassDead.1 Drib.1 Sh.1 Fld.1 Def.1 \\\n",
"0 3.0 0.0 9.0 0.26 6.0 3.0 0.0 0.0 0.0 0.0 \n",
"1 2.0 1.0 6.0 0.25 5.0 1.0 0.0 0.0 0.0 0.0 \n",
"2 1.0 0.0 3.0 0.24 2.0 0.0 0.0 1.0 0.0 0.0 \n",
"3 2.0 0.0 4.0 0.45 2.0 0.0 0.0 1.0 1.0 0.0 \n",
"4 1.0 2.0 5.0 0.15 4.0 1.0 0.0 0.0 0.0 0.0 \n",
"\n",
" Tkl TklW Def 3rd Mid 3rd Att 3rd Tkl.1 Tkl% Past Succ % \\\n",
"0 38.0 18.0 15.0 18.0 5.0 17.0 53.1 15.0 115.0 32.1 \n",
"1 30.0 22.0 12.0 16.0 2.0 5.0 13.5 32.0 135.0 27.9 \n",
"2 18.0 10.0 6.0 11.0 1.0 4.0 19.0 17.0 61.0 26.3 \n",
"3 18.0 10.0 9.0 7.0 2.0 5.0 25.0 15.0 38.0 19.3 \n",
"4 105.0 55.0 38.0 54.0 13.0 32.0 44.4 40.0 193.0 29.5 \n",
"\n",
" Def 3rd.1 Mid 3rd.1 Att 3rd.1 ShSv Pass Tkl+Int Clr Err Touches \\\n",
"0 181.0 123.0 54.0 0.0 38.0 90.0 133.0 0.0 2050.0 \n",
"1 102.0 261.0 121.0 0.0 28.0 44.0 21.0 0.0 1475.0 \n",
"2 74.0 102.0 56.0 0.0 24.0 31.0 9.0 0.0 424.0 \n",
"3 49.0 102.0 46.0 0.0 18.0 25.0 9.0 0.0 322.0 \n",
"4 192.0 355.0 107.0 2.0 52.0 151.0 70.0 0.0 2496.0 \n",
"\n",
" Def Pen Att Pen Succ% #Pl Megs Carries CPA Mis Dis Targ \\\n",
"0 125.0 17.0 33.3 7.0 0.0 1071.0 2.0 18.0 19.0 1171.0 \n",
"1 28.0 68.0 58.3 23.0 4.0 892.0 7.0 45.0 42.0 1176.0 \n",
"2 19.0 36.0 48.0 12.0 2.0 290.0 12.0 9.0 25.0 353.0 \n",
"3 7.0 22.0 35.0 8.0 1.0 186.0 8.0 9.0 17.0 288.0 \n",
"4 65.0 32.0 53.2 26.0 0.0 1543.0 6.0 33.0 60.0 1710.0 \n",
"\n",
" Rec Rec% Prog.1 Mn/MP Min% Mn/Start Compl Subs Mn/Sub unSub \\\n",
"0 1094.0 93.4 31.0 85 89.7 NaN 30.0 1 NaN 1 \n",
"1 893.0 75.9 178.0 74 68.0 NaN 14.0 2 NaN 0 \n",
"2 259.0 73.4 41.0 80 32.7 NaN 6.0 1 NaN 0 \n",
"3 195.0 67.7 33.0 53 23.2 NaN 2.0 6 NaN 0 \n",
"4 1540.0 90.1 85.0 85 89.7 NaN 29.0 2 NaN 0 \n",
"\n",
" PPM onG onGA +/- +/-90 On-Off onxG onxGA xG+/- xG+/-90 \\\n",
"0 1.14 45.0 60.0 -15.0 -0.44 0.84 38.0 51.5 -13.5 -0.40 \n",
"1 1.07 22.0 34.0 -12.0 -0.52 0.58 27.0 31.3 -4.3 -0.18 \n",
"2 1.43 17.0 15.0 2.0 0.16 0.36 13.8 15.4 -1.5 -0.12 \n",
"3 1.27 15.0 14.0 1.0 0.11 0.63 12.0 13.7 -1.6 -0.19 \n",
"4 0.94 25.0 52.0 -27.0 -0.79 -0.03 28.7 49.8 -21.1 -0.62 \n",
"\n",
" On-Off.1 2CrdY Fls PKwon PKcon OG Recov Won Lost Won% \\\n",
"0 1.09 0.0 20 0.0 0.0 0.0 277.0 70.0 57.0 55.1 \n",
"1 0.94 0.0 27 0.0 0.0 0.0 213.0 22.0 37.0 37.3 \n",
"2 0.49 0.0 12 0.0 0.0 0.0 80.0 7.0 15.0 31.8 \n",
"3 0.13 0.0 9 2.0 0.0 0.0 50.0 6.0 12.0 33.3 \n",
"4 -0.01 0.0 26 0.0 0.0 0.0 455.0 35.0 42.0 45.5 \n",
"\n",
" League Name League ID Season Team Name Team Country \\\n",
"0 Big-5-European-Leagues Big5 2017-2018 West Ham England \n",
"1 Big-5-European-Leagues Big5 2017-2018 Hamburger SV Germany \n",
"2 Big-5-European-Leagues Big5 2017-2018 Burnley England \n",
"3 Big-5-European-Leagues Big5 2017-2018 Everton England \n",
"4 Big-5-European-Leagues Big5 2017-2018 Huddersfield England \n",
"\n",
" Player Lower First Name Lower Last Name Lower First Initial Lower \\\n",
"0 aaron cresswell aaron cresswell a \n",
"1 aaron hunt aaron hunt a \n",
"2 aaron lennon aaron lennon a \n",
"3 aaron lennon aaron lennon a \n",
"4 aaron mooy aaron mooy a \n",
"\n",
" Team Country Lower Nationality Code Nationality Cleaned Primary Pos \\\n",
"0 england ENG England DF \n",
"1 germany GER Germany MF \n",
"2 england ENG England MF \n",
"3 england ENG England FW \n",
"4 england AUS Australia MF \n",
"\n",
" Position Grouped Outfielder Goalkeeper GA GA90 SoTA Saves Save% W \\\n",
"0 Defender Outfielder NaN NaN NaN NaN NaN NaN \n",
"1 Midfielder Outfielder NaN NaN NaN NaN NaN NaN \n",
"2 Midfielder Outfielder NaN NaN NaN NaN NaN NaN \n",
"3 Forward Outfielder NaN NaN NaN NaN NaN NaN \n",
"4 Midfielder Outfielder NaN NaN NaN NaN NaN NaN \n",
"\n",
" D L CS CS% PKA PKsv PKm Save%.1 PSxG PSxG/SoT PSxG+/- /90 \\\n",
"0 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN \n",
"1 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN \n",
"2 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN \n",
"3 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN \n",
"4 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN \n",
"\n",
" Thr Launch% AvgLen Launch%.1 AvgLen.1 Opp Stp Stp% #OPA #OPA/90 \\\n",
"0 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN \n",
"1 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN \n",
"2 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN \n",
"3 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN \n",
"4 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN \n",
"\n",
" AvgDist \n",
"0 NaN \n",
"1 NaN \n",
"2 NaN \n",
"3 NaN \n",
"4 NaN "
]
},
"execution_count": 74,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df_fbref_outfield_goakeeper.head()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"#### 4.3.4. Reorder Columns "
]
},
{
"cell_type": "code",
"execution_count": 75,
"metadata": {},
"outputs": [],
"source": [
"# Do this later"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"\n",
"#### 4.3.5. Export DataFrame "
]
},
{
"cell_type": "code",
"execution_count": 76,
"metadata": {},
"outputs": [],
"source": [
"# Export DataFrame as a CSV file\n",
"\n",
"## Export a copy to the FBref Engineered Outfield-Goalkeeper folder called 'latest' (can be overwritten)\n",
"df_fbref_outfield_goakeeper.to_csv(data_dir_fbref + '/engineered/outfield-goalkeeper-combined/fbref_outfield_player_goalkeeper_stats_combined_latest.csv', index=None, header=True)\n",
"\n",
"## Export a copy to the 'archive' subfolder, including the date\n",
"df_fbref_outfield_goakeeper.to_csv(data_dir_fbref + f'/engineered/outfield-goalkeeper-combined/archive/fbref_outfield_player_goalkeeper_stats_combined_last_updated_{today}.csv', index=None, header=True)\n",
"\n",
"## Export a copy to the Export folder (can be overwritten)\n",
"df_fbref_outfield_goakeeper.to_csv(data_dir + '/export/fbref_players_big5_latest.csv', index=None, header=True)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"---\n",
"\n",
" \n",
"\n",
"## 5. Summary \n",
"This notebook scrapes player performance data from [StatsBomb](https://statsbomb.com/) via [FBref](https://fbref.com/en/), using [pandas](http://pandas.pydata.org/) for data manipulation through DataFrames, [Beautifulsoup](https://pypi.org/project/beautifulsoup4/) for webscraping.\n",
"\n",
"With this notebook we now have aggregated player performance data for players in the 'Big 5' European leagues for the 17/18-present seasons."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"---\n",
"\n",
" \n",
"\n",
"## 6. Next Steps \n",
"This data is now ready to be exported and analysed in further Jupyter notebooks or Tableau.\n",
"\n",
"The Data Engineering subfolder in GitHub can be found [here](https://github.com/eddwebster/football_analytics/tree/master/notebooks/B\\)%20Data%20Engineering) and a static version of the record linkage notebook in which the FBref data is joined to TransferMarkt data can be found [here](https://nbviewer.jupyter.org/github/eddwebster/football_analytics/blob/master/notebooks/B%29%20Data%20Engineering/Record%20Linkage%20of%20FBref%20and%20TransferMarkt%20Datasets.ipynb)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"---\n",
"\n",
" \n",
"\n",
"## 7. References \n",
"\n",
"#### Data and Web Scraping\n",
"* [FBref](https://fbref.com/) for the data to scrape\n",
"* FBref statement for using StatsBomb's data: https://fbref.com/en/statsbomb/\n",
"* [StatsBomb](https://statsbomb.com/) providing the data to FBref\n",
"* [FBref_EPL GitHub repository](https://github.com/chmartin/FBref_EPL) by [chmartin](https://github.com/chmartin) for the original web scraping code\n",
"* [Scrape-FBref-data GitHub repository](https://github.com/parth1902/Scrape-FBref-data) by [parth1902](https://github.com/parth1902) for the revised web scraping code for the new FBref metrics\n",
"\n",
"\n",
"#### Countries\n",
"* [Comparison of alphabetic country codes Wiki](https://en.wikipedia.org/wiki/Comparison_of_alphabetic_country_codes)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"---\n",
"\n",
"***Visit my website [eddwebster.com](https://www.eddwebster.com) or my [GitHub Repository](https://github.com/eddwebster) for more projects. If you'd like to get in contact, my Twitter handle is [@eddwebster](http://www.twitter.com/eddwebster) and my email is: edd.j.webster@gmail.com.***"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"[Back to the top](#top)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.6"
},
"varInspector": {
"cols": {
"lenName": 16,
"lenType": 16,
"lenVar": 40
},
"kernels_config": {
"python": {
"delete_cmd_postfix": "",
"delete_cmd_prefix": "del ",
"library": "var_list.py",
"varRefreshCmd": "print(var_dic_list())"
},
"r": {
"delete_cmd_postfix": ") ",
"delete_cmd_prefix": "rm(",
"library": "var_list.r",
"varRefreshCmd": "cat(var_dic_list()) "
}
},
"oldHeight": 642,
"position": {
"height": "664px",
"left": "1119px",
"right": "20px",
"top": "-7px",
"width": "489px"
},
"types_to_exclude": [
"module",
"function",
"builtin_function_or_method",
"instance",
"_Feature"
],
"varInspector_section_display": "block",
"window_display": false
}
},
"nbformat": 4,
"nbformat_minor": 2
}