Regroup some values together in Opta dataframe

Viewed 25

I have an Opta data frame of a rugby game and I would like to regroup the different informations for a same action in one row for each action. I tried to use groupby and groupby.apply('list') with no success for the moment.

This is an example of the dataframe I have :

enter image description here

And I am trying to obtain something like this :

enter image description here

Thanks in advance for your help

0 Answers
Related