Atomic-SPADL#

Converters#

socceraction.atomic.spadl.convert_to_atomic

Convert regular SPADL actions to atomic actions.

Schema#

socceraction.atomic.spadl.AtomicSPADLSchema

Definition of an Atomic-SPADL dataframe.

Config#

socceraction.atomic.spadl.config.field_length

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

socceraction.atomic.spadl.config.field_width

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

socceraction.atomic.spadl.config.actiontypes

Built-in mutable sequence.

socceraction.atomic.spadl.config.bodyparts

Built-in mutable sequence.

Utility functions#

socceraction.atomic.spadl.play_left_to_right

Perform all action in the same playing direction.

socceraction.atomic.spadl.add_names

Add the type name, result name and bodypart name to an Atomic-SPADL dataframe.

socceraction.atomic.spadl.actiontypes_df

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

socceraction.atomic.spadl.bodyparts_df

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