I have the following Pandas dataframe in Python 2.7.
import pandas as pd trial_num = [1,2,3,4,5] sail_rem_time = [\'11:33:11\',\'16:29:05\',\'09:37:56\',\'21
Using to_timedelta,we can convert string to time format(timedelta64[ns]) by specifying units as second,min etc.,
dfc['Time_of_Sail'] = pd.to_timedelta(dfc['Time_of_Sail'], unit='s')