socceraction.spadl.kloppy.convert_to_actions¶
- socceraction.spadl.kloppy.convert_to_actions(dataset, game_id=None)¶
Convert a Kloppy event data set to SPADL actions.
- Parameters:
dataset (EventDataset) – A Kloppy event data set.
game_id (str or int, optional) – The identifier of the game. If not provided, the game id will not be set in the SPADL DataFrame.
- Returns:
actions – DataFrame with corresponding SPADL actions.
- Return type:
pd.DataFrame