Code updated for Serie A 2023/2024

- Reorganization of data folders
- Code adapted for the new Serie A season, also considering only a small number of league games has been played
- Stats from other leagues are considered for players at their first Serie A season (rookies), for now without any adaptation based on league difficulty
- Minor fixes
This commit is contained in:
Giuseppe Musicco
2023-09-09 19:31:52 +02:00
parent 2ea1b65972
commit 1492328958
225 changed files with 63317 additions and 31860 deletions
File diff suppressed because it is too large Load Diff
@@ -85,32 +85,32 @@
" <tr>\n",
" <th>0</th>\n",
" <td>1</td>\n",
" <td>Fiorentina</td>\n",
" <td>Cremonese</td>\n",
" <td>Bologna</td>\n",
" <td>Milan</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>1</td>\n",
" <td>Empoli</td>\n",
" <td>Verona</td>\n",
" <td>Napoli</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>1</td>\n",
" <td>Juventus</td>\n",
" <td>Sassuolo</td>\n",
" <td>Frosinone</td>\n",
" <td>Napoli</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>1</td>\n",
" <td>Lazio</td>\n",
" <td>Bologna</td>\n",
" <td>Genoa</td>\n",
" <td>Fiorentina</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>1</td>\n",
" <td>Lecce</td>\n",
" <td>Inter</td>\n",
" <td>Monza</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
@@ -121,32 +121,32 @@
" <tr>\n",
" <th>375</th>\n",
" <td>38</td>\n",
" <td>Lecce</td>\n",
" <td>Bologna</td>\n",
" <td>Verona</td>\n",
" <td>Inter</td>\n",
" </tr>\n",
" <tr>\n",
" <th>376</th>\n",
" <td>38</td>\n",
" <td>Sassuolo</td>\n",
" <td>Fiorentina</td>\n",
" <td>Juventus</td>\n",
" <td>Monza</td>\n",
" </tr>\n",
" <tr>\n",
" <th>377</th>\n",
" <td>38</td>\n",
" <td>Milan</td>\n",
" <td>Verona</td>\n",
" <td>Lazio</td>\n",
" <td>Sassuolo</td>\n",
" </tr>\n",
" <tr>\n",
" <th>378</th>\n",
" <td>38</td>\n",
" <td>Torino</td>\n",
" <td>Inter</td>\n",
" <td>Milan</td>\n",
" <td>Salernitana</td>\n",
" </tr>\n",
" <tr>\n",
" <th>379</th>\n",
" <td>38</td>\n",
" <td>Udinese</td>\n",
" <td>Juventus</td>\n",
" <td>Napoli</td>\n",
" <td>Lecce</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
@@ -154,18 +154,18 @@
"</div>"
],
"text/plain": [
" matchday team1 team2\n",
"0 1 Fiorentina Cremonese\n",
"1 1 Verona Napoli\n",
"2 1 Juventus Sassuolo\n",
"3 1 Lazio Bologna\n",
"4 1 Lecce Inter\n",
".. ... ... ...\n",
"375 38 Lecce Bologna\n",
"376 38 Sassuolo Fiorentina\n",
"377 38 Milan Verona\n",
"378 38 Torino Inter\n",
"379 38 Udinese Juventus\n",
" matchday team1 team2\n",
"0 1 Bologna Milan\n",
"1 1 Empoli Verona\n",
"2 1 Frosinone Napoli\n",
"3 1 Genoa Fiorentina\n",
"4 1 Inter Monza\n",
".. ... ... ...\n",
"375 38 Verona Inter\n",
"376 38 Juventus Monza\n",
"377 38 Lazio Sassuolo\n",
"378 38 Milan Salernitana\n",
"379 38 Napoli Lecce\n",
"\n",
"[380 rows x 3 columns]"
]
@@ -181,7 +181,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 4,
"id": "0d4a330d",
"metadata": {},
"outputs": [
@@ -191,24 +191,7 @@
"text": [
"loaded votes for matchday 1\n",
"loaded votes for matchday 2\n",
"loaded votes for matchday 3\n",
"loaded votes for matchday 4\n",
"loaded votes for matchday 5\n",
"loaded votes for matchday 6\n",
"loaded votes for matchday 7\n",
"loaded votes for matchday 8\n",
"loaded votes for matchday 9\n",
"loaded votes for matchday 10\n",
"loaded votes for matchday 11\n",
"loaded votes for matchday 12\n",
"loaded votes for matchday 13\n",
"loaded votes for matchday 14\n",
"loaded votes for matchday 15\n",
"loaded votes for matchday 16\n",
"loaded votes for matchday 17\n",
"loaded votes for matchday 18\n",
"loaded votes for matchday 19\n",
"loaded votes for matchday 20\n"
"loaded votes for matchday 3\n"
]
}
],
@@ -219,7 +202,7 @@
"\n",
"for matchday in range(1, LAST_MATCH + 1):\n",
" \n",
" votes_file = 'fantacalcio/voti/Voti_Fantacalcio_Stagione_2022_23_Giornata_' + str(matchday) + '.xlsx'\n",
" votes_file = 'fantacalcio/voti/Voti_Fantacalcio_Stagione_2023_24_Giornata_' + str(matchday) + '.xlsx'\n",
"\n",
" try:\n",
" rx = np.array(pd.read_excel(votes_file, header = None))\n",
@@ -273,7 +256,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 5,
"id": "6ade957d",
"metadata": {},
"outputs": [
@@ -316,33 +299,33 @@
" <td>1</td>\n",
" <td>Musso</td>\n",
" <td>Atalanta</td>\n",
" <td>Sampdoria</td>\n",
" <td>Sassuolo</td>\n",
" <td>0</td>\n",
" <td>6.0</td>\n",
" <td>6.5</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0.5</td>\n",
" <td>5.5</td>\n",
" <td>0.0</td>\n",
" <td>6.5</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>1</td>\n",
" <td>Toloi</td>\n",
" <td>Zappacosta</td>\n",
" <td>Atalanta</td>\n",
" <td>Sampdoria</td>\n",
" <td>Sassuolo</td>\n",
" <td>0</td>\n",
" <td>6.5</td>\n",
" <td>0</td>\n",
" <td>7.0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0.0</td>\n",
" <td>10.0</td>\n",
" <td>6.5</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>1</td>\n",
" <td>Djimsiti</td>\n",
" <td>Atalanta</td>\n",
" <td>Sampdoria</td>\n",
" <td>Sassuolo</td>\n",
" <td>0</td>\n",
" <td>6.0</td>\n",
" <td>0</td>\n",
@@ -353,28 +336,28 @@
" <tr>\n",
" <th>3</th>\n",
" <td>1</td>\n",
" <td>Hateboer</td>\n",
" <td>Kolasinac</td>\n",
" <td>Atalanta</td>\n",
" <td>Sampdoria</td>\n",
" <td>Sassuolo</td>\n",
" <td>0</td>\n",
" <td>6.0</td>\n",
" <td>6.5</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0.5</td>\n",
" <td>5.5</td>\n",
" <td>0.0</td>\n",
" <td>6.5</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>1</td>\n",
" <td>Okoli</td>\n",
" <td>Zortea</td>\n",
" <td>Atalanta</td>\n",
" <td>Sampdoria</td>\n",
" <td>Sassuolo</td>\n",
" <td>0</td>\n",
" <td>5.5</td>\n",
" <td>7.0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0.5</td>\n",
" <td>5.0</td>\n",
" <td>0.0</td>\n",
" <td>10.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
@@ -390,37 +373,11 @@
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5710</th>\n",
" <td>20</td>\n",
" <td>Sulemana I.</td>\n",
" <th>859</th>\n",
" <td>3</td>\n",
" <td>Folorunsho</td>\n",
" <td>Verona</td>\n",
" <td>Udinese</td>\n",
" <td>0</td>\n",
" <td>5.5</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0.5</td>\n",
" <td>5.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5711</th>\n",
" <td>20</td>\n",
" <td>Lasagna</td>\n",
" <td>Verona</td>\n",
" <td>Udinese</td>\n",
" <td>0</td>\n",
" <td>5.5</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0.0</td>\n",
" <td>5.5</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5712</th>\n",
" <td>20</td>\n",
" <td>Braaf</td>\n",
" <td>Verona</td>\n",
" <td>Udinese</td>\n",
" <td>Sassuolo</td>\n",
" <td>0</td>\n",
" <td>5.0</td>\n",
" <td>0</td>\n",
@@ -429,11 +386,37 @@
" <td>5.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5713</th>\n",
" <td>20</td>\n",
" <th>860</th>\n",
" <td>3</td>\n",
" <td>Serdar</td>\n",
" <td>Verona</td>\n",
" <td>Sassuolo</td>\n",
" <td>0</td>\n",
" <td>5.5</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0.0</td>\n",
" <td>5.5</td>\n",
" </tr>\n",
" <tr>\n",
" <th>861</th>\n",
" <td>3</td>\n",
" <td>Bonazzoli</td>\n",
" <td>Verona</td>\n",
" <td>Sassuolo</td>\n",
" <td>0</td>\n",
" <td>5.5</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0.0</td>\n",
" <td>5.5</td>\n",
" </tr>\n",
" <tr>\n",
" <th>862</th>\n",
" <td>3</td>\n",
" <td>Djuric</td>\n",
" <td>Verona</td>\n",
" <td>Udinese</td>\n",
" <td>Sassuolo</td>\n",
" <td>0</td>\n",
" <td>6.0</td>\n",
" <td>0</td>\n",
@@ -442,54 +425,54 @@
" <td>6.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5714</th>\n",
" <td>20</td>\n",
" <th>863</th>\n",
" <td>3</td>\n",
" <td>Ngonge</td>\n",
" <td>Verona</td>\n",
" <td>Udinese</td>\n",
" <td>0</td>\n",
" <td>6.0</td>\n",
" <td>Sassuolo</td>\n",
" <td>0</td>\n",
" <td>6.5</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0.0</td>\n",
" <td>6.0</td>\n",
" <td>9.5</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>5715 rows × 10 columns</p>\n",
"<p>864 rows × 10 columns</p>\n",
"</div>"
],
"text/plain": [
" matchday player team oppteam home vote goals assists \\\n",
"0 1 Musso Atalanta Sampdoria 0 6.0 0 0 \n",
"1 1 Toloi Atalanta Sampdoria 0 7.0 1 0 \n",
"2 1 Djimsiti Atalanta Sampdoria 0 6.0 0 0 \n",
"3 1 Hateboer Atalanta Sampdoria 0 6.0 0 0 \n",
"4 1 Okoli Atalanta Sampdoria 0 5.5 0 0 \n",
"... ... ... ... ... ... ... ... ... \n",
"5710 20 Sulemana I. Verona Udinese 0 5.5 0 0 \n",
"5711 20 Lasagna Verona Udinese 0 5.5 0 0 \n",
"5712 20 Braaf Verona Udinese 0 5.0 0 0 \n",
"5713 20 Djuric Verona Udinese 0 6.0 0 0 \n",
"5714 20 Ngonge Verona Udinese 0 6.0 0 0 \n",
" matchday player team oppteam home vote goals assists \\\n",
"0 1 Musso Atalanta Sassuolo 0 6.5 0 0 \n",
"1 1 Zappacosta Atalanta Sassuolo 0 6.5 0 0 \n",
"2 1 Djimsiti Atalanta Sassuolo 0 6.0 0 0 \n",
"3 1 Kolasinac Atalanta Sassuolo 0 6.5 0 0 \n",
"4 1 Zortea Atalanta Sassuolo 0 7.0 1 0 \n",
".. ... ... ... ... ... ... ... ... \n",
"859 3 Folorunsho Verona Sassuolo 0 5.0 0 0 \n",
"860 3 Serdar Verona Sassuolo 0 5.5 0 0 \n",
"861 3 Bonazzoli Verona Sassuolo 0 5.5 0 0 \n",
"862 3 Djuric Verona Sassuolo 0 6.0 0 0 \n",
"863 3 Ngonge Verona Sassuolo 0 6.5 1 0 \n",
"\n",
" cards_malus fantavote \n",
"0 0.5 5.5 \n",
"1 0.0 10.0 \n",
"2 0.0 6.0 \n",
"3 0.5 5.5 \n",
"4 0.5 5.0 \n",
"... ... ... \n",
"5710 0.5 5.0 \n",
"5711 0.0 5.5 \n",
"5712 0.0 5.0 \n",
"5713 0.0 6.0 \n",
"5714 0.0 6.0 \n",
" cards_malus fantavote \n",
"0 0.0 6.5 \n",
"1 0.0 6.5 \n",
"2 0.0 6.0 \n",
"3 0.0 6.5 \n",
"4 0.0 10.0 \n",
".. ... ... \n",
"859 0.0 5.0 \n",
"860 0.0 5.5 \n",
"861 0.0 5.5 \n",
"862 0.0 6.0 \n",
"863 0.0 9.5 \n",
"\n",
"[5715 rows x 10 columns]"
"[864 rows x 10 columns]"
]
},
"execution_count": 7,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
@@ -500,7 +483,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 6,
"id": "230213fe",
"metadata": {},
"outputs": [],
@@ -520,7 +503,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 13,
"id": "da35bdf9",
"metadata": {},
"outputs": [
@@ -639,12 +622,14 @@
"[380 rows x 3 columns]"
]
},
"execution_count": 7,
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# BACKUP CODE FOR SEASON 2122 and 2021 (different calendar file format than 2223 and 2324)\n",
"\n",
"cal_df = pd.read_excel('fantacalcio/season2122/seriea_calendar.xlsx')\n",
"\n",
"to_drop = list()\n",
@@ -662,7 +647,33 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 14,
"id": "a0b100da",
"metadata": {},
"outputs": [],
"source": [
"cal = np.array(pd.read_excel('fantacalcio/season2223/seriea_calendar.xlsx', header = None))\n",
"\n",
"cal_df = pd.DataFrame(columns = ['matchday', 'team1', 'team2'])\n",
"\n",
"matchday = 0\n",
"\n",
"for i in range(cal.shape[0]):\n",
" if(cal[i, 0][0].isnumeric()):\n",
" matchday = matchday + 1\n",
" continue\n",
" \n",
" teams = cal[i, 0].split('-')\n",
" \n",
" frame = pd.DataFrame([[matchday, teams[0], teams[1]]], columns = cal_df.columns)\n",
"\n",
" cal_df = pd.concat([cal_df, frame], ignore_index = True)\n",
" "
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "0313a0f4",
"metadata": {},
"outputs": [],
@@ -673,7 +684,7 @@
"\n",
"for matchday in range(1, LAST_MATCH + 1):\n",
" \n",
" votes_file = 'fantacalcio/season2122/voti/Voti_Fantacalcio_Stagione_2021_22_Giornata_' + str(matchday) + '.xlsx'\n",
" votes_file = 'fantacalcio/season2223/voti/Voti_Fantacalcio_Stagione_2022_23_Giornata_' + str(matchday) + '.xlsx'\n",
"\n",
"\n",
"\n",
@@ -725,236 +736,13 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 16,
"id": "82b1cfc8",
"metadata": {},
"outputs": [],
"source": [
"df.to_excel('mid_outputs/season2122/players_votes.xlsx')"
"df.to_excel('mid_outputs/season2223/players_votes.xlsx')"
]
},
{
"cell_type": "code",
"execution_count": 10,
"id": "d1fca3ba",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>matchday</th>\n",
" <th>team1</th>\n",
" <th>team2</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>1</td>\n",
" <td>Fiorentina</td>\n",
" <td>Torino</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>1</td>\n",
" <td>Verona</td>\n",
" <td>Roma</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>1</td>\n",
" <td>Parma</td>\n",
" <td>Napoli</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>1</td>\n",
" <td>Genoa</td>\n",
" <td>Crotone</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>1</td>\n",
" <td>Sassuolo</td>\n",
" <td>Cagliari</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>375</th>\n",
" <td>38</td>\n",
" <td>Sassuolo</td>\n",
" <td>Lazio</td>\n",
" </tr>\n",
" <tr>\n",
" <th>376</th>\n",
" <td>38</td>\n",
" <td>Atalanta</td>\n",
" <td>Milan</td>\n",
" </tr>\n",
" <tr>\n",
" <th>377</th>\n",
" <td>38</td>\n",
" <td>Torino</td>\n",
" <td>Benevento</td>\n",
" </tr>\n",
" <tr>\n",
" <th>378</th>\n",
" <td>38</td>\n",
" <td>Bologna</td>\n",
" <td>Juventus</td>\n",
" </tr>\n",
" <tr>\n",
" <th>379</th>\n",
" <td>38</td>\n",
" <td>Napoli</td>\n",
" <td>Verona</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>380 rows × 3 columns</p>\n",
"</div>"
],
"text/plain": [
" matchday team1 team2\n",
"0 1 Fiorentina Torino\n",
"1 1 Verona Roma\n",
"2 1 Parma Napoli\n",
"3 1 Genoa Crotone\n",
"4 1 Sassuolo Cagliari\n",
".. ... ... ...\n",
"375 38 Sassuolo Lazio\n",
"376 38 Atalanta Milan\n",
"377 38 Torino Benevento\n",
"378 38 Bologna Juventus\n",
"379 38 Napoli Verona\n",
"\n",
"[380 rows x 3 columns]"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"cal_df = pd.read_excel('fantacalcio/season2021/seriea_calendar.xlsx')\n",
"\n",
"to_drop = list()\n",
"\n",
"for i in range(cal_df.shape[0]):\n",
" if(not isinstance(cal_df['matchday'][i], int)):\n",
" to_drop.append(i)\n",
" \n",
"cal_df = cal_df.drop(to_drop)\n",
"\n",
"cal_df = cal_df.reset_index(drop = True)\n",
"\n",
"cal_df"
]
},
{
"cell_type": "code",
"execution_count": 11,
"id": "6d5d4101",
"metadata": {},
"outputs": [],
"source": [
"df = pd.DataFrame(columns = ['matchday', 'player', 'team', 'oppteam', 'home', 'vote', 'goals', 'assists', 'cards_malus', 'fantavote'])\n",
"\n",
"LAST_MATCH = 38\n",
"\n",
"for matchday in range(1, LAST_MATCH + 1):\n",
" \n",
" votes_file = 'fantacalcio/season2021/voti/Voti_Fantacalcio_Stagione_2020_21_Giornata_' + str(matchday) + '.xlsx'\n",
"\n",
"\n",
"\n",
"\n",
" rx = np.array(pd.read_excel(votes_file, header = None))\n",
"\n",
" read = 0\n",
" for i in range(rx.shape[0]):\n",
" if(rx[i, 0] == \"Cod.\"):\n",
" read = 1\n",
" team = rx[i-1, 0];\n",
" continue\n",
"\n",
" if(read):\n",
" if(isinstance(rx[i, 0], int)):\n",
" if((isinstance(rx[i, 3], float) or isinstance(rx[i, 3], int)) and rx[i, 1] != \"ALL\") :\n",
" player = rx[i, 2];\n",
" vote = float(rx[i, 3])\n",
" goals = rx[i, 4] + rx[i, 8] - rx[i, 5]\n",
" assists = rx[i, 12]\n",
" cards_malus = rx[i, 10] * 0.5 + rx[i, 11]\n",
" \n",
" oppteam = ''\n",
" home = 0\n",
" for j in range(cal_df.shape[0]):\n",
" if(cal_df['matchday'][j] == matchday):\n",
" if(cal_df['team1'][j] == team):\n",
" oppteam = cal_df['team2'][j] \n",
" home = 1\n",
" elif(cal_df['team2'][j] == team):\n",
" oppteam = cal_df['team1'][j] \n",
" home = 0\n",
"\n",
" goals_gen = goals * 3;\n",
" if(goals < 0):\n",
" goals_gen = goals\n",
" \n",
" fantavote = vote + goals_gen + assists - cards_malus \n",
" \n",
" frame = pd.DataFrame([[matchday, player, team, oppteam, home, vote, goals, assists, cards_malus, fantavote]], columns = df.columns)\n",
"\n",
" df = pd.concat([df, frame], axis = 0, ignore_index = True)\n",
" else:\n",
" read = 0\n",
" continue\n",
"\n",
" df"
]
},
{
"cell_type": "code",
"execution_count": 12,
"id": "0a4bbffd",
"metadata": {},
"outputs": [],
"source": [
"df.to_excel('mid_outputs/season2021/players_votes.xlsx')"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "48a341c2",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -12,7 +12,7 @@
},
{
"cell_type": "code",
"execution_count": 38,
"execution_count": 1,
"id": "4c7b7d26",
"metadata": {},
"outputs": [],
@@ -28,7 +28,7 @@
},
{
"cell_type": "code",
"execution_count": 39,
"execution_count": 2,
"id": "91897dbb",
"metadata": {},
"outputs": [],
@@ -38,7 +38,7 @@
},
{
"cell_type": "code",
"execution_count": 40,
"execution_count": 3,
"id": "7ba89027",
"metadata": {},
"outputs": [
@@ -71,93 +71,93 @@
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Tatarusanu</td>\n",
" <td>Szczesny</td>\n",
" <td>1</td>\n",
" <td>90.0</td>\n",
" <td>80.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Thiaw</td>\n",
" <td>1</td>\n",
" <td>65.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>Kjaer</td>\n",
" <td>1</td>\n",
" <td>85.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Kalulu</td>\n",
" <td>Danilo</td>\n",
" <td>1</td>\n",
" <td>90.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Saelemaekers</td>\n",
" <th>2</th>\n",
" <td>Bremer</td>\n",
" <td>1</td>\n",
" <td>90.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Gatti</td>\n",
" <td>1</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Weah</td>\n",
" <td>1</td>\n",
" <td>80.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>433</th>\n",
" <td>Dumfries</td>\n",
" <td>0</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>434</th>\n",
" <td>Mkhitaryan</td>\n",
" <th>474</th>\n",
" <td>Fabbian</td>\n",
" <td>0</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>435</th>\n",
" <td>Asllani</td>\n",
" <th>475</th>\n",
" <td>Aebischer</td>\n",
" <td>0</td>\n",
" <td>30.0</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>436</th>\n",
" <td>Gagliardini</td>\n",
" <th>476</th>\n",
" <td>El Azzouzi</td>\n",
" <td>0</td>\n",
" <td>50.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>437</th>\n",
" <td>Lukaku</td>\n",
" <th>477</th>\n",
" <td>Urbanski</td>\n",
" <td>0</td>\n",
" <td>15.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>478</th>\n",
" <td>Ndoye</td>\n",
" <td>0</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>438 rows × 3 columns</p>\n",
"<p>479 rows × 3 columns</p>\n",
"</div>"
],
"text/plain": [
" player starter percentage\n",
"0 Tatarusanu 1 90.0\n",
"1 Thiaw 1 65.0\n",
"2 Kjaer 1 85.0\n",
"3 Kalulu 1 90.0\n",
"4 Saelemaekers 1 60.0\n",
".. ... ... ...\n",
"433 Dumfries 0 60.0\n",
"434 Mkhitaryan 0 55.0\n",
"435 Asllani 0 30.0\n",
"436 Gagliardini 0 50.0\n",
"437 Lukaku 0 60.0\n",
" player starter percentage\n",
"0 Szczesny 1 80.0\n",
"1 Danilo 1 90.0\n",
"2 Bremer 1 90.0\n",
"3 Gatti 1 60.0\n",
"4 Weah 1 80.0\n",
".. ... ... ...\n",
"474 Fabbian 0 55.0\n",
"475 Aebischer 0 60.0\n",
"476 El Azzouzi 0 50.0\n",
"477 Urbanski 0 15.0\n",
"478 Ndoye 0 60.0\n",
"\n",
"[438 rows x 3 columns]"
"[479 rows x 3 columns]"
]
},
"execution_count": 40,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
@@ -192,7 +192,7 @@
},
{
"cell_type": "code",
"execution_count": 41,
"execution_count": 4,
"id": "29e5b389",
"metadata": {},
"outputs": [],
@@ -202,7 +202,7 @@
},
{
"cell_type": "code",
"execution_count": 42,
"execution_count": 5,
"id": "d711726e",
"metadata": {},
"outputs": [
@@ -235,384 +235,293 @@
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Saelemaekers</td>\n",
" <td>Calabria</td>\n",
" <td>Fagioli</td>\n",
" <td>Miretti</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Diaz B.</td>\n",
" <td>De Ketelaere</td>\n",
" <td>60.0</td>\n",
" <td>Kostic</td>\n",
" <td>Cambiaso</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>Thiaw</td>\n",
" <td>Messias</td>\n",
" <td>65.0</td>\n",
" <td>Gatti</td>\n",
" <td>Alex Sandro</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Aina</td>\n",
" <td>Singo</td>\n",
" <td>Kamada</td>\n",
" <td>Guendouzi</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Rodriguez R.</td>\n",
" <td>Buongiorno</td>\n",
" <td>55.0</td>\n",
" <td>De Vrij</td>\n",
" <td>Acerbi</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>Akpa Akpro</td>\n",
" <td>Haas</td>\n",
" <td>60.0</td>\n",
" <td>Mkhitaryan</td>\n",
" <td>Frattesi</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>Satriano</td>\n",
" <td>Piccoli</td>\n",
" <td>60.0</td>\n",
" <td>Dumfries</td>\n",
" <td>Cuadrado</td>\n",
" <td>65.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>Ebuehi</td>\n",
" <td>Stojanovic</td>\n",
" <td>60.0</td>\n",
" <td>Giroud</td>\n",
" <td>Okafor</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>Holm</td>\n",
" <td>Ferrer</td>\n",
" <td>55.0</td>\n",
" <td>Krunic</td>\n",
" <td>Musah</td>\n",
" <td>65.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <td>Nzola</td>\n",
" <td>Shomurodov</td>\n",
" <td>55.0</td>\n",
" <td>Badelj</td>\n",
" <td>Thorsby</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>10</th>\n",
" <td>Agudelo</td>\n",
" <td>Cipot</td>\n",
" <td>Sabelli</td>\n",
" <td>Martin</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>11</th>\n",
" <td>Di Francesco F.</td>\n",
" <td>Banda</td>\n",
" <td>65.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>12</th>\n",
" <td>Gallo</td>\n",
" <td>Pezzella Giu.</td>\n",
" <td>Politano</td>\n",
" <td>Raspadori</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>12</th>\n",
" <td>Olivera</td>\n",
" <td>Mario Rui</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>13</th>\n",
" <td>El Shaarawy</td>\n",
" <td>Celik</td>\n",
" <td>Luvumbo</td>\n",
" <td>Oristanio</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>14</th>\n",
" <td>Matic</td>\n",
" <td>Bove</td>\n",
" <td>60.0</td>\n",
" <td>Petagna</td>\n",
" <td>Shomurodov</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>15</th>\n",
" <td>Lazzari</td>\n",
" <td>Hysaj</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>16</th>\n",
" <td>Luis Alberto</td>\n",
" <td>Vecino</td>\n",
" <td>Lucca</td>\n",
" <td>Success</td>\n",
" <td>65.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>17</th>\n",
" <td>Boga</td>\n",
" <td>Ederson D.s.</td>\n",
" <th>16</th>\n",
" <td>Ferreira J.</td>\n",
" <td>Ebosele</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>17</th>\n",
" <td>Kamara H.</td>\n",
" <td>Zemura</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>18</th>\n",
" <td>Hojlund</td>\n",
" <td>Zapata D.</td>\n",
" <td>Soule'</td>\n",
" <td>Baez</td>\n",
" <td>65.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>19</th>\n",
" <td>Djimsiti</td>\n",
" <td>Demiral</td>\n",
" <td>60.0</td>\n",
" <td>Gelli</td>\n",
" <td>Caso</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>20</th>\n",
" <td>Thauvin</td>\n",
" <td>Success</td>\n",
" <td>Thorstvedt</td>\n",
" <td>Bajrami</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>21</th>\n",
" <td>Arslan</td>\n",
" <td>Lovric</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>22</th>\n",
" <td>Bajrami</td>\n",
" <td>Thorstvedt</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>23</th>\n",
" <td>Ruan</td>\n",
" <td>Ferrari G.</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>24</th>\n",
" <td>Lopez M.</td>\n",
" <td>Obiang</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>25</th>\n",
" <td>Zirkzee</td>\n",
" <td>Barrow</td>\n",
" <td>65.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>26</th>\n",
" <td>Cambiaso</td>\n",
" <td>Lykogiannis</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>27</th>\n",
" <td>Soriano</td>\n",
" <td>Aebischer</td>\n",
" <td>65.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>28</th>\n",
" <td>Marlon</td>\n",
" <td>Caldirola</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>29</th>\n",
" <td>Petagna</td>\n",
" <td>Colombo</td>\n",
" <td>Mota</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>30</th>\n",
" <td>Sensi</td>\n",
" <td>Machin</td>\n",
" <th>22</th>\n",
" <td>Birindelli</td>\n",
" <td>Kyriakopoulos</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>23</th>\n",
" <td>Kaba</td>\n",
" <td>Gonzalez J.</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>24</th>\n",
" <td>Djimsiti</td>\n",
" <td>Toloi</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>25</th>\n",
" <td>De Ketelaere</td>\n",
" <td>Lookman</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>26</th>\n",
" <td>Ederson D.s.</td>\n",
" <td>Pasalic</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>27</th>\n",
" <td>Dybala</td>\n",
" <td>El Shaarawy</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>28</th>\n",
" <td>Kristensen</td>\n",
" <td>Celik</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>29</th>\n",
" <td>Spinazzola</td>\n",
" <td>Zalewski</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>30</th>\n",
" <td>Fazzini</td>\n",
" <td>Grassi</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>31</th>\n",
" <td>De Sciglio</td>\n",
" <td>Chiesa</td>\n",
" <td>Ebuehi</td>\n",
" <td>Bereszynski</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>32</th>\n",
" <td>Brekalo</td>\n",
" <td>Saponara</td>\n",
" <td>Pezzella Giu.</td>\n",
" <td>Cacace</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>33</th>\n",
" <td>Brekalo</td>\n",
" <td>Ikone'</td>\n",
" <td>55.0</td>\n",
" <td>Botheim</td>\n",
" <td>Dia</td>\n",
" <td>65.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>34</th>\n",
" <td>Jovic</td>\n",
" <td>Cabral</td>\n",
" <td>60.0</td>\n",
" <td>Ilic</td>\n",
" <td>Linetty</td>\n",
" <td>65.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>35</th>\n",
" <td>Barak</td>\n",
" <td>Duncan</td>\n",
" <td>60.0</td>\n",
" <td>Bellanova</td>\n",
" <td>Lazaro</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>36</th>\n",
" <td>Lozano</td>\n",
" <td>Elmas</td>\n",
" <td>Lazovic</td>\n",
" <td>Folorunsho</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>37</th>\n",
" <td>Lozano</td>\n",
" <td>Politano</td>\n",
" <td>55.0</td>\n",
" <td>Mboula</td>\n",
" <td>Bonazzoli</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>38</th>\n",
" <td>Mario Rui</td>\n",
" <td>Olivera</td>\n",
" <td>Karlsson</td>\n",
" <td>Ndoye</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>39</th>\n",
" <td>Buonaiuto</td>\n",
" <td>Afena-Gyan</td>\n",
" <td>Orsolini</td>\n",
" <td>Ndoye</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>40</th>\n",
" <td>Benassi</td>\n",
" <td>Castagnetti</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>41</th>\n",
" <td>Ceccherini</td>\n",
" <td>Coppola D.</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>42</th>\n",
" <td>Magnani</td>\n",
" <td>Dawidowicz</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>43</th>\n",
" <td>Ngonge</td>\n",
" <td>Gaich</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>44</th>\n",
" <td>Bronn</td>\n",
" <td>Daniliuc</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>45</th>\n",
" <td>Lovato</td>\n",
" <td>Sambia</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>46</th>\n",
" <td>Bohinen</td>\n",
" <td>Nicolussi Caviglia</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>47</th>\n",
" <td>Djuricic</td>\n",
" <td>Sabiri</td>\n",
" <td>65.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>48</th>\n",
" <td>Murru</td>\n",
" <td>Murillo</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>49</th>\n",
" <td>Rincon</td>\n",
" <td>Cuisance</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>50</th>\n",
" <td>Brozovic</td>\n",
" <td>Mkhitaryan</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>51</th>\n",
" <td>Dzeko</td>\n",
" <td>Lukaku</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>52</th>\n",
" <td>Darmian</td>\n",
" <td>Dumfries</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" player1 player2 percentage\n",
"0 Saelemaekers Calabria 60.0\n",
"1 Diaz B. De Ketelaere 60.0\n",
"2 Thiaw Messias 65.0\n",
"3 Aina Singo 55.0\n",
"4 Rodriguez R. Buongiorno 55.0\n",
"5 Akpa Akpro Haas 60.0\n",
"6 Satriano Piccoli 60.0\n",
"7 Ebuehi Stojanovic 60.0\n",
"8 Holm Ferrer 55.0\n",
"9 Nzola Shomurodov 55.0\n",
"10 Agudelo Cipot 60.0\n",
"11 Di Francesco F. Banda 65.0\n",
"12 Gallo Pezzella Giu. 60.0\n",
"13 El Shaarawy Celik 60.0\n",
"14 Matic Bove 60.0\n",
"15 Lazzari Hysaj 55.0\n",
"16 Luis Alberto Vecino 65.0\n",
"17 Boga Ederson D.s. 55.0\n",
"18 Hojlund Zapata D. 65.0\n",
"19 Djimsiti Demiral 60.0\n",
"20 Thauvin Success 55.0\n",
"21 Arslan Lovric 60.0\n",
"22 Bajrami Thorstvedt 55.0\n",
"23 Ruan Ferrari G. 60.0\n",
"24 Lopez M. Obiang 55.0\n",
"25 Zirkzee Barrow 65.0\n",
"26 Cambiaso Lykogiannis 55.0\n",
"27 Soriano Aebischer 65.0\n",
"28 Marlon Caldirola 55.0\n",
"29 Petagna Mota 60.0\n",
"30 Sensi Machin 55.0\n",
"31 De Sciglio Chiesa 60.0\n",
"32 Brekalo Saponara 55.0\n",
"33 Brekalo Ikone' 55.0\n",
"34 Jovic Cabral 60.0\n",
"35 Barak Duncan 60.0\n",
"36 Lozano Elmas 55.0\n",
"37 Lozano Politano 55.0\n",
"38 Mario Rui Olivera 60.0\n",
"39 Buonaiuto Afena-Gyan 60.0\n",
"40 Benassi Castagnetti 60.0\n",
"41 Ceccherini Coppola D. 60.0\n",
"42 Magnani Dawidowicz 55.0\n",
"43 Ngonge Gaich 60.0\n",
"44 Bronn Daniliuc 60.0\n",
"45 Lovato Sambia 55.0\n",
"46 Bohinen Nicolussi Caviglia 55.0\n",
"47 Djuricic Sabiri 65.0\n",
"48 Murru Murillo 60.0\n",
"49 Rincon Cuisance 60.0\n",
"50 Brozovic Mkhitaryan 55.0\n",
"51 Dzeko Lukaku 60.0\n",
"52 Darmian Dumfries 55.0"
" player1 player2 percentage\n",
"0 Fagioli Miretti 60.0\n",
"1 Kostic Cambiaso 55.0\n",
"2 Gatti Alex Sandro 60.0\n",
"3 Kamada Guendouzi 55.0\n",
"4 De Vrij Acerbi 60.0\n",
"5 Mkhitaryan Frattesi 55.0\n",
"6 Dumfries Cuadrado 65.0\n",
"7 Giroud Okafor 55.0\n",
"8 Krunic Musah 65.0\n",
"9 Badelj Thorsby 60.0\n",
"10 Sabelli Martin 60.0\n",
"11 Politano Raspadori 60.0\n",
"12 Olivera Mario Rui 55.0\n",
"13 Luvumbo Oristanio 60.0\n",
"14 Petagna Shomurodov 55.0\n",
"15 Lucca Success 65.0\n",
"16 Ferreira J. Ebosele 55.0\n",
"17 Kamara H. Zemura 60.0\n",
"18 Soule' Baez 65.0\n",
"19 Gelli Caso 55.0\n",
"20 Thorstvedt Bajrami 55.0\n",
"21 Colombo Mota 60.0\n",
"22 Birindelli Kyriakopoulos 60.0\n",
"23 Kaba Gonzalez J. 60.0\n",
"24 Djimsiti Toloi 55.0\n",
"25 De Ketelaere Lookman 60.0\n",
"26 Ederson D.s. Pasalic 55.0\n",
"27 Dybala El Shaarawy 60.0\n",
"28 Kristensen Celik 55.0\n",
"29 Spinazzola Zalewski 55.0\n",
"30 Fazzini Grassi 60.0\n",
"31 Ebuehi Bereszynski 60.0\n",
"32 Pezzella Giu. Cacace 55.0\n",
"33 Botheim Dia 65.0\n",
"34 Ilic Linetty 65.0\n",
"35 Bellanova Lazaro 55.0\n",
"36 Lazovic Folorunsho 55.0\n",
"37 Mboula Bonazzoli 60.0\n",
"38 Karlsson Ndoye 60.0\n",
"39 Orsolini Ndoye 60.0"
]
},
"execution_count": 42,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
@@ -638,7 +547,7 @@
},
{
"cell_type": "code",
"execution_count": 43,
"execution_count": 6,
"id": "0171c61d",
"metadata": {},
"outputs": [
@@ -674,84 +583,84 @@
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>Tatarusanu</th>\n",
" <th>Szczesny</th>\n",
" <td>1</td>\n",
" <td>80.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Danilo</th>\n",
" <td>1</td>\n",
" <td>90.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Thiaw</th>\n",
" <td>0.65</td>\n",
" <td>65.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Kjaer</th>\n",
" <td>1</td>\n",
" <td>85.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Kalulu</th>\n",
" <th>Bremer</th>\n",
" <td>1</td>\n",
" <td>90.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Saelemaekers</th>\n",
" <th>Gatti</th>\n",
" <td>0.6</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Weah</th>\n",
" <td>1</td>\n",
" <td>80.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Dumfries</th>\n",
" <td>0.45</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Mkhitaryan</th>\n",
" <td>0.45</td>\n",
" <th>Fabbian</th>\n",
" <td>0</td>\n",
" <td>55.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Asllani</th>\n",
" <th>Aebischer</th>\n",
" <td>0</td>\n",
" <td>30.0</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Gagliardini</th>\n",
" <th>El Azzouzi</th>\n",
" <td>0</td>\n",
" <td>50.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Lukaku</th>\n",
" <th>Urbanski</th>\n",
" <td>0</td>\n",
" <td>15.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Ndoye</th>\n",
" <td>0.4</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>438 rows × 2 columns</p>\n",
"<p>479 rows × 2 columns</p>\n",
"</div>"
],
"text/plain": [
" starter percentage\n",
"player \n",
"Tatarusanu 1 90.0\n",
"Thiaw 0.65 65.0\n",
"Kjaer 1 85.0\n",
"Kalulu 1 90.0\n",
"Saelemaekers 0.6 60.0\n",
"... ... ...\n",
"Dumfries 0.45 60.0\n",
"Mkhitaryan 0.45 55.0\n",
"Asllani 0 30.0\n",
"Gagliardini 0 50.0\n",
"Lukaku 0.4 60.0\n",
" starter percentage\n",
"player \n",
"Szczesny 1 80.0\n",
"Danilo 1 90.0\n",
"Bremer 1 90.0\n",
"Gatti 0.6 60.0\n",
"Weah 1 80.0\n",
"... ... ...\n",
"Fabbian 0 55.0\n",
"Aebischer 0 60.0\n",
"El Azzouzi 0 50.0\n",
"Urbanski 0 15.0\n",
"Ndoye 0.4 60.0\n",
"\n",
"[438 rows x 2 columns]"
"[479 rows x 2 columns]"
]
},
"execution_count": 43,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
@@ -771,21 +680,13 @@
},
{
"cell_type": "code",
"execution_count": 44,
"execution_count": 7,
"id": "8b5468aa",
"metadata": {},
"outputs": [],
"source": [
"probables.to_excel('mid_outputs/match_probable_players.xlsx') "
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "62164549",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
File diff suppressed because one or more lines are too long