socceraction.spadl.add_names¶
- socceraction.spadl.add_names(actions)¶
Add the type name, result name and bodypart name to a SPADL dataframe.
- Parameters:
actions (pd.DataFrame) – A SPADL dataframe.
- Returns:
The original dataframe with a ‘type_name’, ‘result_name’ and ‘bodypart_name’ appended.
- Return type:
pd.DataFrame