nicetoolbox.utils.video.remove_last_segment_from_file¶
- nicetoolbox.utils.video.remove_last_segment_from_file(segments_list_file: str) None[source]¶
Removes the last segment from the given segments list file.
This function reads the segments list file into a pandas DataFrame, drops the last row, and then writes the updated DataFrame back to the CSV file.
- Parameters:
segments_list_file (str) – The path to the CSV file containing the list of segments.
- Returns:
None