I want to plot RESULT vs TIME based on a testresult.csv file that has following format, and I have trouble to get the TIME column\'s datatype defined properly.<
testresult.csv
you can try this:
In [69]: df = pd.read_csv(fn, parse_dates=[0], date_parser=lambda x: pd.to_datetime(x, format='%m/%d/%Y %I:%M:%S %p')) In [70]: df Out[70]: TIME RESULT 0 2016-03-24 00:27:11 2 1 2016-03-24 00:28:41 76 2 2016-03-24 00:37:23 19 3 2016-03-24 00:38:44 68 4 2016-03-24 00:42:02 44