I have a csv that contains different type of format, however, when I read in the data even with specifying the data dtype as object or dtype as str, it still changes my format.
Example of my csv as belows:
Date Cost
3/31/2015 3363
2020-16-07 5515
When I perform
a = pd.read_csv('xxxx.csv',dtype={'Date':object})
it returns
Date Cost
2015-3-31 3363
2020-16-07 5515
When I tries to check its type, it appears to the string, however it changed the date.
I've also tried to read it in as the below, however it still yield me the same result
a = pd.read_csv('xxxx.csv',dtype={'Date':str})
Can I read it as original state so I can convert it to the same format?