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