I want to find the players with the most games for Liverpool. The dataset contains two variables: opposition teams and t
Posted: Wed Apr 27, 2022 3:43 pm
I want to find the players with the most games for Liverpool.
The dataset contains two variables: opposition teams and the
players in the starting 11.
F.ex
Opposition
Goals by
Leeds
["Salah", "Mane"]
Burnley
["Salah", "Firmino"]
Arsenal
["Mane"]
Chelsea
["Salah", "Van Dijk", "Mane"].
The real dataset is a lot larger, so I cant just make my own
dataset using the visualised data. So therefore i want a python 3
code to extract the data from the data set and produce a pandas
dataframe with the following structure:
Player
Goals
0 Salah
3
1 Mane
2
2 Van Dijk
1
3 Henderson
1
4 Firmino
1
The dataset contains two variables: opposition teams and the
players in the starting 11.
F.ex
Opposition
Goals by
Leeds
["Salah", "Mane"]
Burnley
["Salah", "Firmino"]
Arsenal
["Mane"]
Chelsea
["Salah", "Van Dijk", "Mane"].
The real dataset is a lot larger, so I cant just make my own
dataset using the visualised data. So therefore i want a python 3
code to extract the data from the data set and produce a pandas
dataframe with the following structure:
Player
Goals
0 Salah
3
1 Mane
2
2 Van Dijk
1
3 Henderson
1
4 Firmino
1