socceraction.data.opta.OptaEventSchema

class socceraction.data.opta.OptaEventSchema(*args, **kwargs)

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

Attributes

assist

Whether the event was an assist or not.

end_x

The x coordinate of the location where the event ended.

end_y

The y coordinate of the location where the event ended.

event_id

The unique identifier for the event.

game_id

The unique identifier for the game.

goal

Whether the event was a goal or not.

keypass

Whether the event was a keypass or not.

minute

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

outcome

Whether the event had a successful outcome or not.

period_id

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

player_id

The unique identifier for the player this event relates to.

qualifiers

A JSON object containing the Opta qualifiers of the event.

related_player_id

The ID of a second player that was involved in this event.

second

The second part of the timestamp.

shot

Whether the event was a shot or not.

start_x

The x coordinate of the location where the event started.

start_y

The y coordinate of the location where the event started.

team_id

The unique identifier for the team this event relates to.

timestamp

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

touch

Whether the event was a on-the-ball action or not.

type_id

The unique identifier for the type of this event.

type_name

The name of the type of this event.