socceraction.data.statsbomb.StatsBombEventSchema#

class socceraction.data.statsbomb.StatsBombEventSchema(*args, **kwargs)#

Definition of a dataframe containing event stream data of a game.

Attributes

counterpress

Pressing actions within 5 seconds of an open play turnover.

duration

If relevant, the length in seconds the event lasted.

event_id

The unique identifier for the event.

extra

A JSON string containing type-specific information.

freeze_frame_360

An array of freeze frame objects.

game_id

The unique identifier for the game.

index

Sequence notation for the ordering of events within each match.

location

Array containing the x and y coordinates of the event.

minute

The minutes on the clock at the time of this event.

period_id

The unique identifier for the part of the game in which the event took place.

play_pattern_id

The ID of the play pattern relevant to this event.

play_pattern_name

The name of the play pattern relevant to this event.

player_id

The unique identifier for the player this event relates to.

player_name

The name of the player this event relates to.

position_id

The ID of the position the player was in at the time of this event.

position_name

The name of the position the player was in at the time of this event.

possession

Indicates the current unique possession in the game.

possession_team_id

The ID of the team that started this possession in control of the ball.

possession_team_name

The name of the team that started this possession in control of the ball.

related_events

A comma separated list of the IDs of related events.

second

The second part of the timestamp.

team_id

The unique identifier for the team this event relates to.

team_name

The name of the team this event relates to.

timestamp

Time in the match the event takes place, recorded to the millisecond.

type_id

The unique identifier for the type of this event.

type_name

The name of the type of this event.

under_pressure

Whether the action was performed while being pressured by an opponent.

visible_area_360

An array of coordinates describing the polygon visible to the camera / in the 360 frame.