how to convert object to datetime in pandas dataframe code example Example: convert datetime to date pandas [dt.to_datetime().date() for dt in df.dates]