Wyscout
kloppy.wyscout
Functions for loading Wyscout event data.
load
Load Wyscout event data.
PARAMETER | DESCRIPTION |
---|---|
event_data
|
JSON feed with the raw event data of a 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:
|
data_version
|
The version of the Wyscout data. Supported versions are "V2" and "V3".
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
EventDataset
|
The parsed event data. |
Source code in kloppy/_providers/wyscout.py
load_open_data
Load Wyscout open data.
This dataset is a public release of event stream data, collected by Wyscout containing all matches of the 2017/18 season of the top-5 European leagues (La Liga, Serie A, Bundesliga, Premier League, Ligue 1), the FIFA World Cup 2018, and UEFA Euro Cup 2016. For a detailed description, see Pappalardo et al. [1].
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. |
References
[1] Pappalardo, L., Cintia, P., Rossi, A. et al. A public data set of spatio-temporal match events in soccer competitions. Sci Data 6, 236 (2019). https://doi.org/10.1038/s41597-019-0247-7