Regular SPADL#

Implementation of the SPADL language.

Converters#

socceraction.spadl.statsbomb.convert_to_actions

Convert StatsBomb events to SPADL actions.

socceraction.spadl.opta.convert_to_actions

Convert Opta events to SPADL actions.

socceraction.spadl.wyscout.convert_to_actions

Convert Wyscout events to SPADL actions.

Schema#

socceraction.spadl.SPADLSchema

Definition of a SPADL dataframe.

Config#

socceraction.spadl.config.field_length

Convert a string or number to a floating point number, if possible.

socceraction.spadl.config.field_width

Convert a string or number to a floating point number, if possible.

socceraction.spadl.config.actiontypes

Built-in mutable sequence.

socceraction.spadl.config.bodyparts

Built-in mutable sequence.

socceraction.spadl.config.results

Built-in mutable sequence.

Utility functions#

socceraction.spadl.play_left_to_right

Perform all action in the same playing direction.

socceraction.spadl.add_names

Add the type name, result name and bodypart name to a SPADL dataframe.

socceraction.spadl.actiontypes_df

Return a dataframe with the type id and type name of each SPADL action type.

socceraction.spadl.bodyparts_df

Return a dataframe with the bodypart id and bodypart name of each SPADL action type.

socceraction.spadl.results_df

Return a dataframe with the result id and result name of each SPADL action type.