I want to find the players with the most games for Liverpool. The dataset contains two variables: opposition teams and t

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

I want to find the players with the most games for Liverpool. The dataset contains two variables: opposition teams and t

Post by answerhappygod »

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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply