I have a pandas code and work with lot of datafiles. I use the following code to convert time delta to date time index.
df['date_time'] = ["2016-05-19 08:25:00","2016-05-19 16:00:00","2016-05-20 07:45:00","2016-05-24 12:50:00","2016-05-25 23:00:00","2016-05-26 19:45:00"]
df['date_time'] = pd.DatetimeIndex(df['date_time'])
But one particular data file gives me the error:
raise e
ValueError: Unknown string format
What could be the reason behind this error? If it is due to a invalid data in the datafile, how to remove it?