socceraction.data.statsbomb.StatsBombLoader.events

StatsBombLoader.events(game_id, load_360=False)

Return a dataframe with the event stream of a game.

Parameters:
  • game_id (int) – The ID of the game.

  • load_360 (bool) – Whether to load the 360 data.

Raises:

ParseError – When the raw data does not adhere to the expected format.

Returns:

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

Return type:

pd.DataFrame