convert datetime for string pandas code example Example: pandas change dtype to timestamp pd.to_datetime(df.column)