converting timestamp to date python in a column in dataframe code example Example: convert column to timestamp pandas df2 = pd.to_datetime(df['col1']) df2