socceraction.atomic.spadl.add_names

socceraction.atomic.spadl.add_names(actions)

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

Parameters:

actions (pd.DataFrame) – An Atomic-SPADL dataframe.

Returns:

The original dataframe with a ‘type_name’, ‘result_name’ and ‘bodypart_name’ appended.

Return type:

pd.DataFrame