convert the variable into time series in pandas code example Example: pandas convert series of datetime to date df['date_only'] = df['date_time_column'].dt.date