socceraction.data.opta.OptaLoader.events

OptaLoader.events(game_id)

Return a dataframe with the event stream of a game.

Parameters:

game_id (int) – The ID of the game.

Returns:

A dataframe containing the event stream. See OptaEventSchema for the schema.

Return type:

pd.DataFrame