pandas change string to time code example
Example 1: from string to time python dataframe
dfc['Time_of_Sail'] = pd.to_datetime(dfc['Time_of_Sail'],format= '%H:%M:%S' ).dt.time
Example 2: convert column to timestamp pandas
df2 = pd.to_datetime(df['col1'])
df2