I have a csv file that I am reading into pandas. The file has a field called Period with values : 31DEC2017,31JAN2018 etc. Pandas reads it as a string, but I need to read it as a date. How do I do it? I tried:
pd.read_csv("test.csv" ,dtype={'PERIOD':time})
But it does not work. I even tried :
dtype={'PERIOD':date})
dtype={'PERIOD':datetime})
Still gives me error