Convert timestamps into fraction of day in pandas

I want to convert the time in the format hh:mm into the fraction of the day . I have the dataframe in which I have the column of duration

Duration
0:56
0:54
2:57

I want to convert this column into the fraction of day



Read more here: https://stackoverflow.com/questions/64942919/convert-timestamps-into-fraction-of-day-in-pandas

Content Attribution

This content was originally published by Tayyab Gulsher Vohra at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: