I've got a dataframe that looks like this:
and I want to make 'TIME_STAMP_NEW' column as index. Current code:
twoweektable['TIME_STAMP_NEW'] = pd.to_datetime(twoweektable['TIME_STAMP_NEW'])
twoweektable.set_index('TIME_STAMP_NEW',inplace=True)
However, the result index looks like this
Any ideas on why there is unexpected 'T' and decimal in second?