Hudl Statsbomb
kloppy.statsbomb
Functions for loading Hudl StatsBomb event data.
load
Load StatsBomb event data.
PARAMETER | DESCRIPTION |
---|---|
event_data
|
JSON feed with the raw event data of a game.
TYPE:
|
lineup_data
|
JSON feed with the corresponding lineup information of the game.
TYPE:
|
three_sixty_data
|
JSON feed with the 360 freeze frame data of the game.
TYPE:
|
event_types
|
A list of event types to load.
TYPE:
|
coordinates
|
The coordinate system to use.
TYPE:
|
event_factory
|
A custom event factory.
TYPE:
|
additional_metadata
|
A dict with additional data that will be added to
the metadata. See the
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
EventDataset
|
The parsed event data. |
Source code in kloppy/_providers/statsbomb.py
load_open_data
Load StatsBomb open data.
This function loads event data directly from the StatsBomb open data GitHub repository.
PARAMETER | DESCRIPTION |
---|---|
match_id
|
The id of the match to load data for.
TYPE:
|
event_types
|
A list of event types to load.
TYPE:
|
coordinates
|
The coordinate system to use.
TYPE:
|
event_factory
|
A custom event factory.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
EventDataset
|
The parsed event data. |