{ "nbformat": 4, "nbformat_minor": 0, "metadata": { "colab": { "name": "xGStatsbomb.ipynb", "provenance": [], "collapsed_sections": [], "authorship_tag": "ABX9TyNsyQ1grvKucvpzQ+6OWDaR", "include_colab_link": true }, "kernelspec": { "name": "python3", "display_name": "Python 3" } }, "cells": [ { "cell_type": "markdown", "metadata": { "id": "view-in-github", "colab_type": "text" }, "source": [ "" ] }, { "cell_type": "code", "metadata": { "id": "g37QpaaPZHA5", "colab_type": "code", "outputId": "e4d0b0c8-f58b-4e46-a41e-65d2743d1e50", "colab": { "base_uri": "https://localhost:8080/", "height": 187 } }, "source": [ "%%time\n", "!git clone https://github.com/statsbomb/open-data.git" ], "execution_count": 1, "outputs": [ { "output_type": "stream", "text": [ "Cloning into 'open-data'...\n", "remote: Enumerating objects: 1133, done.\u001b[K\n", "remote: Counting objects: 100% (1133/1133), done.\u001b[K\n", "remote: Compressing objects: 100% (632/632), done.\u001b[K\n", "remote: Total 9855 (delta 925), reused 690 (delta 482), pack-reused 8722\u001b[K\n", "Receiving objects: 100% (9855/9855), 996.16 MiB | 25.43 MiB/s, done.\n", "Resolving deltas: 100% (8672/8672), done.\n", "Checking out files: 100% (1648/1648), done.\n", "CPU times: user 478 ms, sys: 94.4 ms, total: 572 ms\n", "Wall time: 2min 17s\n" ], "name": "stdout" } ] }, { "cell_type": "code", "metadata": { "id": "nd6vcG3uZNJb", "colab_type": "code", "colab": {} }, "source": [ "#import all modules\n", "import json\n", "import os\n", "import codecs\n", "import numpy as np\n", "import pandas as pd\n", "import matplotlib.pyplot as plt\n", "from matplotlib.patches import Arc, Rectangle, ConnectionPatch\n", "from matplotlib.offsetbox import OffsetImage\n", "from matplotlib.patches import Ellipse\n", "from functools import reduce\n", "import math" ], "execution_count": 0, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "5NMxa9NNZR5m", "colab_type": "code", "outputId": "163c47f0-dae4-4337-af58-3d2696232bf7", "colab": { "base_uri": "https://localhost:8080/", "height": 68 } }, "source": [ "%%time\n", "comp = ['FIFA World Cup','La Liga']\n", "main_df = pd.DataFrame(data=None)\n", "path_match = \"/content/open-data/data/events/\" #location for play by play events\n", "for root, dirs, files in os.walk('/content/open-data/data/matches/'):\n", " for file in files:\n", " with open(os.path.join(root, file), \"r\") as auto:\n", " with codecs.open(root + str('/') + file,encoding='utf-8') as data_file:\n", " data = json.load(data_file)\n", " df = pd.DataFrame(data=None)\n", " df = pd.json_normalize(data, sep = \"_\")\n", " #for x in df.competition_country_name:\n", " # if x == 'Spain':\n", " # print(df.match_id)\n", " #print(df['competition_competition_name'])\n", " for i in range(len(df)):\n", " if df.iloc[i]['competition_competition_name'] in comp :\n", " match_no = df.iloc[i]['match_id'] #gets match with Spain as country\n", " match_no = str(match_no) # from int to str \n", " #print('match list \\n',match_no)\n", " with codecs.open(path_match + match_no + str(r'.json'),encoding=\"utf8\") as event_file: #open the respective file\n", " df_match = json.load(event_file)\n", " df_match2 = pd.DataFrame(data=None)\n", " df_match2 = pd.json_normalize(df_match,sep=\"_\") \n", " df_match2 = df_match2[(df_match2['type_name'] == \"Shot\")]\n", " main_df = main_df.append(df_match2,ignore_index=True,sort=False) \n", "#print('total matches ',len(match_no)) \n", "print('Done')" ], "execution_count": 3, "outputs": [ { "output_type": "stream", "text": [ "Done\n", "CPU times: user 6min 28s, sys: 1.27 s, total: 6min 29s\n", "Wall time: 6min 30s\n" ], "name": "stdout" } ] }, { "cell_type": "code", "metadata": { "id": "waQI6t6OVM33", "colab_type": "code", "outputId": "16372efd-c12f-48ec-f02c-95279925490b", "colab": { "base_uri": "https://localhost:8080/", "height": 508 } }, "source": [ "main_df.head()" ], "execution_count": 0, "outputs": [ { "output_type": "execute_result", "data": { "text/html": [ "
\n", " | id | \n", "index | \n", "period | \n", "timestamp | \n", "minute | \n", "second | \n", "possession | \n", "duration | \n", "type_id | \n", "type_name | \n", "possession_team_id | \n", "possession_team_name | \n", "play_pattern_id | \n", "play_pattern_name | \n", "team_id | \n", "team_name | \n", "tactics_formation | \n", "tactics_lineup | \n", "related_events | \n", "location | \n", "player_id | \n", "player_name | \n", "position_id | \n", "position_name | \n", "pass_recipient_id | \n", "pass_recipient_name | \n", "pass_length | \n", "pass_angle | \n", "pass_height_id | \n", "pass_height_name | \n", "pass_end_location | \n", "pass_type_id | \n", "pass_type_name | \n", "pass_body_part_id | \n", "pass_body_part_name | \n", "carry_end_location | \n", "under_pressure | \n", "pass_outcome_id | \n", "pass_outcome_name | \n", "ball_receipt_outcome_id | \n", "... | \n", "pass_deflected | \n", "block_deflection | \n", "substitution_outcome_id | \n", "substitution_outcome_name | \n", "substitution_replacement_id | \n", "substitution_replacement_name | \n", "ball_recovery_recovery_failure | \n", "dribble_overrun | \n", "50_50_outcome_id | \n", "50_50_outcome_name | \n", "shot_aerial_won | \n", "shot_open_goal | \n", "bad_behaviour_card_id | \n", "bad_behaviour_card_name | \n", "pass_no_touch | \n", "block_offensive | \n", "foul_committed_offensive | \n", "shot_saved_off_target | \n", "goalkeeper_shot_saved_off_target | \n", "miscontrol_aerial_won | \n", "goalkeeper_punched_out | \n", "clearance_other | \n", "ball_recovery_offensive | \n", "shot_deflected | \n", "dribble_no_touch | \n", "shot_redirect | \n", "block_save_block | \n", "injury_stoppage_in_chain | \n", "half_start_late_video_start | \n", "player_off_permanent | \n", "goalkeeper_lost_out | \n", "goalkeeper_saved_to_post | \n", "shot_follows_dribble | \n", "shot_saved_to_post | \n", "goalkeeper_shot_saved_to_post | \n", "pass_backheel | \n", "goalkeeper_lost_in_play | \n", "goalkeeper_success_out | \n", "goalkeeper_success_in_play | \n", "half_end_early_video_end | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "fb785612-71d3-44df-aae4-da6e005756de | \n", "117 | \n", "1 | \n", "00:02:06.532 | \n", "2 | \n", "6 | \n", "6 | \n", "1.015179 | \n", "16 | \n", "Shot | \n", "222 | \n", "Villarreal | \n", "1 | \n", "Regular Play | \n", "222 | \n", "Villarreal | \n", "NaN | \n", "NaN | \n", "[1febb4f7-0e2c-43f7-96fe-51fbffaaf664] | \n", "[107.5, 27.2] | \n", "11386.0 | \n", "Santiago Cazorla González | \n", "16.0 | \n", "Left Midfield | \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", "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", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
1 | \n", "2dfa84fe-3579-4705-8d27-44b8917907e1 | \n", "499 | \n", "1 | \n", "00:09:49.110 | \n", "9 | \n", "49 | \n", "17 | \n", "1.302674 | \n", "16 | \n", "Shot | \n", "222 | \n", "Villarreal | \n", "4 | \n", "From Throw In | \n", "222 | \n", "Villarreal | \n", "NaN | \n", "NaN | \n", "[1af68944-ff3d-49a1-92a0-fe6198e73e78] | \n", "[88.3, 50.2] | \n", "25921.0 | \n", "Rubén Gracia Calmache | \n", "12.0 | \n", "Right Midfield | \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", "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", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
2 | \n", "c9d92f30-2159-4a5a-a5bf-9d1163e4b33f | \n", "587 | \n", "1 | \n", "00:12:58.407 | \n", "12 | \n", "58 | \n", "24 | \n", "0.521000 | \n", "16 | \n", "Shot | \n", "222 | \n", "Villarreal | \n", "5 | \n", "Other | \n", "222 | \n", "Villarreal | \n", "NaN | \n", "NaN | \n", "[61239f9b-052f-42ab-8a73-3c3c3841d419] | \n", "[108.0, 40.0] | \n", "20135.0 | \n", "Marcos Antonio Senna da Silva | \n", "15.0 | \n", "Left Center Midfield | \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", "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", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
3 | \n", "26b5d67b-5fce-4a5a-8b31-b879adbb61d3 | \n", "1113 | \n", "1 | \n", "00:24:01.266 | \n", "24 | \n", "1 | \n", "42 | \n", "0.647279 | \n", "16 | \n", "Shot | \n", "217 | \n", "Barcelona | \n", "7 | \n", "From Goal Kick | \n", "217 | \n", "Barcelona | \n", "NaN | \n", "NaN | \n", "[1d8506ef-3a55-45c7-aba9-e31204db051e, 354b60e... | \n", "[107.3, 36.1] | \n", "4913.0 | \n", "Bojan Krkíc Pérez | \n", "23.0 | \n", "Center Forward | \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", "True | \n", "NaN | \n", "NaN | \n", "NaN | \n", "... | \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", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
4 | \n", "20528610-c092-482c-8238-6b9679328680 | \n", "1343 | \n", "1 | \n", "00:28:38.374 | \n", "28 | \n", "38 | \n", "49 | \n", "1.023005 | \n", "16 | \n", "Shot | \n", "217 | \n", "Barcelona | \n", "1 | \n", "Regular Play | \n", "217 | \n", "Barcelona | \n", "NaN | \n", "NaN | \n", "[06385378-493b-4bd8-8731-f983c4ac28d8] | \n", "[105.3, 29.4] | \n", "5503.0 | \n", "Lionel Andrés Messi Cuccittini | \n", "17.0 | \n", "Right Wing | \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", "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", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
5 rows × 147 columns
\n", "\n", " | location | \n", "Distance | \n", "Angle | \n", "UnderPressure | \n", "ShotType | \n", "ShotBodyPart | \n", "ShotTechnique | \n", "ShotFirstTime | \n", "InFrontofGoal | \n", "ShotOneonOne | \n", "xG | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|
10082 | \n", "[115.2, 43.6] | \n", "6.902760 | \n", "62.487997 | \n", "0 | \n", "3 | \n", "4 | \n", "3 | \n", "1 | \n", "1 | \n", "0 | \n", "0.593055 | \n", "
11940 | \n", "[118.0, 45.0] | \n", "5.727806 | \n", "50.906141 | \n", "0 | \n", "3 | \n", "4 | \n", "7 | \n", "1 | \n", "0 | \n", "0 | \n", "0.588634 | \n", "
5946 | \n", "[115.1, 37.6] | \n", "6.607503 | \n", "70.644874 | \n", "0 | \n", "3 | \n", "4 | \n", "7 | \n", "1 | \n", "2 | \n", "0 | \n", "0.588151 | \n", "
4032 | \n", "[114.3, 42.8] | \n", "7.348970 | \n", "61.917732 | \n", "0 | \n", "3 | \n", "4 | \n", "3 | \n", "1 | \n", "1 | \n", "0 | \n", "0.582283 | \n", "
10411 | \n", "[116.3, 40.1] | \n", "5.449276 | \n", "94.443109 | \n", "0 | \n", "3 | \n", "1 | \n", "5 | \n", "0 | \n", "2 | \n", "0 | \n", "0.578671 | \n", "
10059 | \n", "[117.9, 44.7] | \n", "5.581727 | \n", "57.994617 | \n", "0 | \n", "3 | \n", "4 | \n", "3 | \n", "1 | \n", "1 | \n", "0 | \n", "0.577080 | \n", "
5721 | \n", "[115.0, 40.0] | \n", "6.403124 | \n", "77.319617 | \n", "0 | \n", "3 | \n", "1 | \n", "5 | \n", "0 | \n", "0 | \n", "0 | \n", "0.573219 | \n", "
10216 | \n", "[114.8, 38.0] | \n", "6.755564 | \n", "70.123128 | \n", "0 | \n", "3 | \n", "1 | \n", "5 | \n", "0 | \n", "1 | \n", "1 | \n", "0.563681 | \n", "
4014 | \n", "[112.3, 38.2] | \n", "8.824071 | \n", "52.934164 | \n", "0 | \n", "3 | \n", "4 | \n", "3 | \n", "1 | \n", "0 | \n", "0 | \n", "0.561885 | \n", "
8422 | \n", "[113.1, 43.4] | \n", "8.521922 | \n", "51.972274 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "1 | \n", "0 | \n", "0 | \n", "0.557730 | \n", "
6056 | \n", "[114.0, 37.0] | \n", "7.651153 | \n", "58.861028 | \n", "0 | \n", "3 | \n", "4 | \n", "6 | \n", "1 | \n", "1 | \n", "0 | \n", "0.552528 | \n", "
1551 | \n", "[114.4, 39.4] | \n", "6.899202 | \n", "70.664392 | \n", "0 | \n", "3 | \n", "2 | \n", "3 | \n", "1 | \n", "1 | \n", "0 | \n", "0.549695 | \n", "
250 | \n", "[113.1, 42.1] | \n", "8.183296 | \n", "56.874096 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "0 | \n", "0 | \n", "0 | \n", "0.548621 | \n", "
3272 | \n", "[113.6, 40.1] | \n", "7.547661 | \n", "64.001725 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "0 | \n", "1 | \n", "0 | \n", "0.542347 | \n", "
9799 | \n", "[113.2, 42.0] | \n", "8.078323 | \n", "57.813206 | \n", "0 | \n", "3 | \n", "4 | \n", "4 | \n", "1 | \n", "1 | \n", "0 | \n", "0.538975 | \n", "
10820 | \n", "[113.6, 41.8] | \n", "7.702349 | \n", "61.154851 | \n", "0 | \n", "3 | \n", "2 | \n", "5 | \n", "1 | \n", "0 | \n", "0 | \n", "0.533676 | \n", "
5077 | \n", "[114.1, 43.6] | \n", "7.767437 | \n", "56.055770 | \n", "0 | \n", "3 | \n", "4 | \n", "7 | \n", "1 | \n", "1 | \n", "0 | \n", "0.528097 | \n", "
12541 | \n", "[113.0, 44.0] | \n", "8.815073 | \n", "48.814075 | \n", "0 | \n", "3 | \n", "4 | \n", "7 | \n", "0 | \n", "1 | \n", "1 | \n", "0.527048 | \n", "
11843 | \n", "[113.0, 38.0] | \n", "8.249827 | \n", "56.546691 | \n", "0 | \n", "3 | \n", "4 | \n", "7 | \n", "1 | \n", "1 | \n", "0 | \n", "0.524932 | \n", "
3227 | \n", "[115.6, 41.8] | \n", "6.099730 | \n", "79.380345 | \n", "0 | \n", "3 | \n", "1 | \n", "5 | \n", "0 | \n", "1 | \n", "0 | \n", "0.522069 | \n", "
1710 | \n", "[113.3, 39.1] | \n", "7.841507 | \n", "61.008967 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "0 | \n", "1 | \n", "0 | \n", "0.514230 | \n", "
1796 | \n", "[112.4, 39.7] | \n", "8.592467 | \n", "55.459494 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "1 | \n", "1 | \n", "0 | \n", "0.512211 | \n", "
12751 | \n", "[115.0, 42.0] | \n", "6.597707 | \n", "71.995838 | \n", "0 | \n", "3 | \n", "2 | \n", "5 | \n", "0 | \n", "1 | \n", "0 | \n", "0.510614 | \n", "
12635 | \n", "[118.0, 36.0] | \n", "5.123106 | \n", "75.963757 | \n", "0 | \n", "3 | \n", "1 | \n", "5 | \n", "0 | \n", "1 | \n", "0 | \n", "0.509163 | \n", "
5094 | \n", "[115.6, 43.6] | \n", "6.599972 | \n", "65.125846 | \n", "0 | \n", "3 | \n", "2 | \n", "5 | \n", "1 | \n", "1 | \n", "0 | \n", "0.509059 | \n", "
12870 | \n", "[109.0, 41.0] | \n", "11.742400 | \n", "39.699073 | \n", "0 | \n", "4 | \n", "4 | \n", "5 | \n", "0 | \n", "0 | \n", "0 | \n", "0.509021 | \n", "
12363 | \n", "[109.0, 41.0] | \n", "11.742400 | \n", "39.699073 | \n", "0 | \n", "4 | \n", "4 | \n", "5 | \n", "0 | \n", "0 | \n", "0 | \n", "0.509021 | \n", "
12622 | \n", "[109.0, 41.0] | \n", "11.742400 | \n", "39.699073 | \n", "0 | \n", "4 | \n", "4 | \n", "5 | \n", "0 | \n", "0 | \n", "0 | \n", "0.509021 | \n", "
11356 | \n", "[109.0, 41.0] | \n", "11.742400 | \n", "39.699073 | \n", "0 | \n", "4 | \n", "4 | \n", "5 | \n", "0 | \n", "0 | \n", "0 | \n", "0.509021 | \n", "
11390 | \n", "[109.0, 41.0] | \n", "11.742400 | \n", "39.699073 | \n", "0 | \n", "4 | \n", "4 | \n", "5 | \n", "0 | \n", "0 | \n", "0 | \n", "0.509021 | \n", "
12918 | \n", "[109.0, 41.0] | \n", "11.742400 | \n", "39.699073 | \n", "0 | \n", "4 | \n", "4 | \n", "5 | \n", "0 | \n", "0 | \n", "0 | \n", "0.509021 | \n", "
11495 | \n", "[109.0, 41.0] | \n", "11.742400 | \n", "39.699073 | \n", "0 | \n", "4 | \n", "4 | \n", "5 | \n", "0 | \n", "0 | \n", "0 | \n", "0.509021 | \n", "
9319 | \n", "[114.0, 42.8] | \n", "7.593725 | \n", "59.886267 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "0 | \n", "1 | \n", "0 | \n", "0.508912 | \n", "
5479 | \n", "[114.3, 42.5] | \n", "7.269647 | \n", "63.495292 | \n", "0 | \n", "3 | \n", "1 | \n", "5 | \n", "0 | \n", "1 | \n", "1 | \n", "0.503553 | \n", "
9820 | \n", "[116.5, 37.5] | \n", "5.595149 | \n", "84.897835 | \n", "0 | \n", "3 | \n", "1 | \n", "2 | \n", "0 | \n", "2 | \n", "0 | \n", "0.502442 | \n", "
5385 | \n", "[112.6, 42.2] | \n", "8.634894 | \n", "53.628856 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "1 | \n", "1 | \n", "0 | \n", "0.496973 | \n", "
9100 | \n", "[115.8, 44.3] | \n", "6.756425 | \n", "59.073874 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "1 | \n", "2 | \n", "0 | \n", "0.495486 | \n", "
1360 | \n", "[113.7, 36.1] | \n", "8.202624 | \n", "52.338128 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "1 | \n", "1 | \n", "0 | \n", "0.493024 | \n", "
3664 | \n", "[116.4, 43.2] | \n", "5.868831 | \n", "75.963757 | \n", "1 | \n", "3 | \n", "2 | \n", "5 | \n", "1 | \n", "1 | \n", "0 | \n", "0.491836 | \n", "
8527 | \n", "[115.0, 43.3] | \n", "6.948463 | \n", "63.561138 | \n", "0 | \n", "3 | \n", "2 | \n", "5 | \n", "1 | \n", "1 | \n", "0 | \n", "0.491444 | \n", "
10394 | \n", "[112.4, 38.0] | \n", "8.770864 | \n", "53.033726 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "1 | \n", "1 | \n", "0 | \n", "0.490224 | \n", "
3910 | \n", "[112.6, 39.5] | \n", "8.423397 | \n", "56.617007 | \n", "0 | \n", "3 | \n", "2 | \n", "5 | \n", "1 | \n", "0 | \n", "0 | \n", "0.486898 | \n", "
4346 | \n", "[108.3, 40.3] | \n", "12.368128 | \n", "37.728461 | \n", "0 | \n", "4 | \n", "4 | \n", "5 | \n", "0 | \n", "0 | \n", "0 | \n", "0.484093 | \n", "
11026 | \n", "[108.2, 40.1] | \n", "12.459894 | \n", "37.449331 | \n", "0 | \n", "4 | \n", "4 | \n", "5 | \n", "0 | \n", "0 | \n", "0 | \n", "0.480520 | \n", "
3793 | \n", "[112.3, 44.5] | \n", "9.592653 | \n", "44.111835 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "0 | \n", "1 | \n", "1 | \n", "0.479089 | \n", "
6938 | \n", "[112.2, 42.0] | \n", "8.946530 | \n", "51.949987 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "1 | \n", "1 | \n", "0 | \n", "0.478999 | \n", "
7928 | \n", "[113.3, 38.2] | \n", "7.956833 | \n", "59.059829 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "1 | \n", "2 | \n", "0 | \n", "0.477739 | \n", "
554 | \n", "[114.8, 36.7] | \n", "7.104802 | \n", "62.203440 | \n", "0 | \n", "3 | \n", "2 | \n", "7 | \n", "1 | \n", "1 | \n", "0 | \n", "0.477342 | \n", "
1305 | \n", "[108.1, 40.0] | \n", "12.554282 | \n", "37.158541 | \n", "0 | \n", "4 | \n", "4 | \n", "5 | \n", "0 | \n", "0 | \n", "0 | \n", "0.476817 | \n", "
3704 | \n", "[108.1, 40.1] | \n", "12.554640 | \n", "37.156345 | \n", "0 | \n", "4 | \n", "4 | \n", "5 | \n", "0 | \n", "0 | \n", "0 | \n", "0.476794 | \n", "
\n", " | location | \n", "Distance | \n", "Angle | \n", "UnderPressure | \n", "ShotType | \n", "ShotBodyPart | \n", "ShotTechnique | \n", "ShotFirstTime | \n", "ShotOneonOne | \n", "InFrontofGoal | \n", "isGoal | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "[110.5, 36.2] | \n", "10.896986 | \n", "40.593846 | \n", "1 | \n", "3 | \n", "4 | \n", "5 | \n", "1 | \n", "0 | \n", "1 | \n", "False | \n", "
1 | \n", "[114.2, 48.0] | \n", "10.186866 | \n", "29.611685 | \n", "0 | \n", "3 | \n", "4 | \n", "7 | \n", "1 | \n", "0 | \n", "2 | \n", "False | \n", "
2 | \n", "[95.3, 48.3] | \n", "26.332306 | \n", "16.596593 | \n", "0 | \n", "2 | \n", "2 | \n", "5 | \n", "0 | \n", "0 | \n", "4 | \n", "False | \n", "
3 | \n", "[103.3, 61.6] | \n", "27.413807 | \n", "10.378789 | \n", "0 | \n", "3 | \n", "2 | \n", "5 | \n", "0 | \n", "0 | \n", "1 | \n", "False | \n", "
4 | \n", "[94.9, 55.2] | \n", "29.543437 | \n", "13.366677 | \n", "0 | \n", "2 | \n", "2 | \n", "5 | \n", "0 | \n", "0 | \n", "4 | \n", "False | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
12952 | \n", "[111.0, 27.0] | \n", "15.981653 | \n", "17.102729 | \n", "0 | \n", "3 | \n", "2 | \n", "5 | \n", "0 | \n", "0 | \n", "3 | \n", "False | \n", "
12953 | \n", "[114.0, 33.0] | \n", "9.619084 | \n", "34.824489 | \n", "0 | \n", "3 | \n", "2 | \n", "5 | \n", "0 | \n", "0 | \n", "1 | \n", "True | \n", "
12954 | \n", "[107.0, 32.0] | \n", "15.646638 | \n", "25.606661 | \n", "0 | \n", "3 | \n", "2 | \n", "5 | \n", "0 | \n", "0 | \n", "1 | \n", "False | \n", "
12955 | \n", "[97.0, 22.0] | \n", "29.376742 | \n", "12.398277 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "0 | \n", "0 | \n", "1 | \n", "False | \n", "
12956 | \n", "[109.0, 52.0] | \n", "16.508979 | \n", "19.464104 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "0 | \n", "0 | \n", "1 | \n", "False | \n", "
12957 rows × 11 columns
\n", "\n", " | location | \n", "Distance | \n", "Angle | \n", "UnderPressure | \n", "ShotType | \n", "ShotBodyPart | \n", "ShotTechnique | \n", "ShotFirstTime | \n", "InFrontofGoal | \n", "ShotOneonOne | \n", "xG | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|
646 | \n", "[118.8, 37.0] | \n", "4.332081 | \n", "120.077993 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "1 | \n", "0 | \n", "0 | \n", "0.979459 | \n", "
10495 | \n", "[119.3, 41.4] | \n", "4.068882 | \n", "157.545469 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "1 | \n", "0 | \n", "0 | \n", "0.979459 | \n", "
2681 | \n", "[119.1, 39.6] | \n", "4.100949 | \n", "154.403626 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "1 | \n", "0 | \n", "0 | \n", "0.979459 | \n", "
5237 | \n", "[118.7, 39.4] | \n", "4.210111 | \n", "143.294745 | \n", "0 | \n", "3 | \n", "4 | \n", "3 | \n", "1 | \n", "0 | \n", "0 | \n", "0.969388 | \n", "
7452 | \n", "[117.7, 37.8] | \n", "4.766741 | \n", "107.693813 | \n", "0 | \n", "3 | \n", "2 | \n", "5 | \n", "1 | \n", "0 | \n", "0 | \n", "0.967390 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
505 | \n", "[58.1, 28.1] | \n", "63.155775 | \n", "7.132821 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "0 | \n", "1 | \n", "0 | \n", "0.004881 | \n", "
11160 | \n", "[61.8, 39.8] | \n", "58.337636 | \n", "7.863251 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "0 | \n", "1 | \n", "0 | \n", "0.004881 | \n", "
3568 | \n", "[63.0, 30.5] | \n", "57.920804 | \n", "7.813054 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "0 | \n", "1 | \n", "0 | \n", "0.004881 | \n", "
5084 | \n", "[87.5, 67.5] | \n", "42.683234 | \n", "8.235003 | \n", "0 | \n", "3 | \n", "4 | \n", "3 | \n", "0 | \n", "1 | \n", "0 | \n", "0.004615 | \n", "
6085 | \n", "[58.9, 43.2] | \n", "61.313999 | \n", "7.470866 | \n", "0 | \n", "3 | \n", "4 | \n", "5 | \n", "0 | \n", "2 | \n", "0 | \n", "0.004594 | \n", "
2592 rows × 11 columns
\n", "