socceraction.data.opta.OptaEventSchema¶
- class socceraction.data.opta.OptaEventSchema(*args, **kwargs)¶
Definition of a dataframe containing event stream data of a game.
Attributes
assistWhether the event was an assist or not.
end_xThe x coordinate of the location where the event ended.
end_yThe y coordinate of the location where the event ended.
event_idThe unique identifier for the event.
game_idThe unique identifier for the game.
goalWhether the event was a goal or not.
keypassWhether the event was a keypass or not.
minuteThe minutes on the clock at the time of this event.
outcomeWhether the event had a successful outcome or not.
period_idThe unique identifier for the part of the game in which the event took place.
player_idThe unique identifier for the player this event relates to.
qualifiersA JSON object containing the Opta qualifiers of the event.
related_player_idThe ID of a second player that was involved in this event.
secondThe second part of the timestamp.
shotWhether the event was a shot or not.
start_xThe x coordinate of the location where the event started.
start_yThe y coordinate of the location where the event started.
team_idThe unique identifier for the team this event relates to.
timestampTime in the match the event takes place, recorded to the millisecond.
touchWhether the event was a on-the-ball action or not.
type_idThe unique identifier for the type of this event.
type_nameThe name of the type of this event.