# Durations: Finish Times with Timedelta

Finish times typed as text such as '0:27:15' sort wrongly and can't be averaged, so pd.to_timedelta turns them into durations, the ones it can't read, such as '27:15', are found with errors='coerce' and fixed, dt.total_seconds() turns a duration into minutes and a pace per mile, and whole minutes and seconds turn it back into text people can read.

![Cheat sheet: Durations: Finish Times with Timedelta](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/75581d797b0b42ed9068ae0aaee3b16c.webp)

- Category: Data Analysis
- Level: Journeyman
- Tags: python, Timedelta, to_timedelta(), total_seconds()
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/pandas-durations-cheat-sheet
