I have a column in pandas dataframe like this:
>>> print(df['SESSION_DATE'])
0 2008-05-20
1 2013-03-15
2 2014-10-14
3 2006-08-04
4 2006-11-20
Name: SESSION_DATE, dtype: datetime64[ns]
I am trying to create a new column based on this one. But I want the timestamp to show as well. Here is what I tried:
>>> df['NEW_COMPL_DTE'] = pd.to_datetime(df['SESSION_DATE'])
>>> print(df['NEW_COMPL_DTE'])
0 2008-05-20
1 2013-03-15
2 2014-10-14
3 2006-08-04
4 2006-11-20
Name: NEW_COMPL_DTE, dtype: datetime64[ns]
I was hoping the output would include a 00:00:00 after each date. Please advise.