how to convert datetime to time in pandas code example
Example 1: convert date time to date pandas
df['date_column'] = pd.to_datetime(df['datetime_column']).dt.date
Example 2: convert datetime to date pandas
[dt.to_datetime().date() for dt in df.dates]