convert string column to pandas timestamp dataframe 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: pandas change dtype to timestamp
pd.to_datetime(df.column)
Example 3: convert column to timestamp pandas
df2 = pd.to_datetime(df['col1'])
df2