socceraction.data.statsbomb.StatsBombEventSchema¶
- class socceraction.data.statsbomb.StatsBombEventSchema(*args, **kwargs)¶
Definition of a dataframe containing event stream data of a game.
Attributes
counterpressPressing actions within 5 seconds of an open play turnover.
durationIf relevant, the length in seconds the event lasted.
event_idThe unique identifier for the event.
extraA JSON string containing type-specific information.
freeze_frame_360An array of freeze frame objects.
game_idThe unique identifier for the game.
indexSequence notation for the ordering of events within each match.
locationArray containing the x and y coordinates of the event.
minuteThe minutes on the clock at the time of this event.
period_idThe unique identifier for the part of the game in which the event took place.
play_pattern_idThe ID of the play pattern relevant to this event.
play_pattern_nameThe name of the play pattern relevant to this event.
player_idThe unique identifier for the player this event relates to.
player_nameThe name of the player this event relates to.
position_idThe ID of the position the player was in at the time of this event.
position_nameThe name of the position the player was in at the time of this event.
possessionIndicates the current unique possession in the game.
possession_team_idThe ID of the team that started this possession in control of the ball.
possession_team_nameThe name of the team that started this possession in control of the ball.
related_eventsA comma separated list of the IDs of related events.
secondThe second part of the timestamp.
team_idThe unique identifier for the team this event relates to.
team_nameThe name of the team this event relates to.
timestampTime in the match the event takes place, recorded to the millisecond.
type_idThe unique identifier for the type of this event.
type_nameThe name of the type of this event.
under_pressureWhether the action was performed while being pressured by an opponent.
visible_area_360An array of coordinates describing the polygon visible to the camera / in the 360 frame.