deepof.utils.rename_track_bps

deepof.utils.rename_track_bps(loaded_tab: DataFrame, rename_bodyparts: 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 (list) – list of names to use for the body parts in the provided tracking files. The order should match that of the columns in your DLC tables or the node dimensions on your (S)LEAP files.

  • animal_ids (list) – list of IDs to use for the animals present in the provided tracking files.

Returns:

Data frame with renamed body parts

Return type:

renamed_tab (pd.DataFrame)