pandas convert datetime column to timestamp code example
Example 1: convert date time to date pandas
df['date_column'] = pd.to_datetime(df['datetime_column']).dt.date
Example 2: pandas change dtype to timestamp
pd.to_datetime(df.column)
df['date_column'] = pd.to_datetime(df['datetime_column']).dt.date
pd.to_datetime(df.column)