I have a dataset like the one below:
game teams score
Liverpool - Leeds Liverpool 2
Liverpool - Leeds Leeds 1
Sheffield - Norwich Sheffield 0
Sheffield - Norwich Norwich 1
Arsenal - Newcastle Arsenal 3
Arsenal - Newcastle Newcastle 2
My purpose is to keep only the rows corresponding to the winning team. My desired outpout would look like this:
game teams score
Liverpool - Leeds Liverpool 2
Sheffield - Norwich Norwich 1
Arsenal - Newcastle Arsenal 3
I guess I would need to group the rows by game firstly, but once done I'm not being able to move forward successfully.