I don't know why I am getting this again and again. here's is my code snippet.
my data have the date in MDY format, and time in H: M: S format.
I don't know why I am getting this again and again. here's is my code snippet.
my data have the date in MDY format, and time in H: M: S format.
The problem ist that you specify a format while your data contains two different formats: One with seconds (the last five values) and one without (the first five values). Your specified format doesn't fit both.
However, pandas can figure it out by itself if you don't specify the format:
work_data['Date/Time'] = pd.to_datetime(work_data['Date/Time'])