deepof.utils.rename_track_bps
- deepof.utils.rename_track_bps(loaded_tab: DataFrame, rename_bodyparts_dict: list, animal_ids: list)
Renames all body parts in the provided dataframe.
- Parameters:
loaded_tab (pd.DataFrame) – Data frame containing the loaded tracks. Likelihood for (S)LEAP files is imputed as 1.0 (tracked values) or 0.0 (missing values).
rename_bodyparts_dict (dict) – dictionary of bodypart names given in the table corresponding to deepOFs bodypart names.
animal_ids (list) – list of IDs to use for the animals present in the provided tracking files.
bodypart_graph (str) – DeepOF bodypart graph that is going to be used
- Returns:
Data frame with renamed body parts
- Return type:
renamed_tab (pd.DataFrame)