I have a CSV file that looks like this:
date,important
July 2015,True
August 2015,False
But when I try to read it into pandas using read_csv with the parse_dates flag, it isn't parsing the date column as dates:
df = pd.read_csv('test.csv', parse_dates=True)
df
date important
0 July 2015 True
1 August 2015 False
I guess this is because they aren't date objects in a recognised format, but is there any way around this?
I can use df.date = pd.to_datetime(df.date) just fine, so I find it odd that I can't do that on import.