I have a CSV where the first column is a day and a time and the remaining columns are measurements taken at those times. The dates are in the form "MM/DD/YYYY hh:mm:ss" in a single column. Python reads this as a string. How to I convert this to a date and time? Python doesn't know that '09/14/2016 23:00:00' comes right before '09/15/2016 0:00:00'
In MatLab, I can use
time = datenum(filename{:,1})
datetick('x','mmm-dd HH:MM:SS')
but I'm not sure what to use in Python. Is there a similar command in this language? I have tried using datetime, but I haven't much luck.
Thanks!
Note: I'm using Pandas to read the CSV