I am trying to transition my reports that are currently automated with VBA to python. But since i work with lots of durations on my exports I have a problem.
If i want to do some measures with this data that is in "%H:%M:%S" format I have to convert it using:
df['Duration'] = pd.to_timedelta(df['Duration'])
But when I save my dataframe back to csv it saves the data as 0 days 00:09:17.000000000
and I need it to be saved with the format %H:%M:%S.
Am I doing it wrong? Thanks