BUG: in read_csv, keep_date_cols doesn't result in correct dtype (original) (raw)
>>> import pandas>>> import io>>> data = """A2015090820150909""">>> t=pandas.read_csv(io.StringIO(data))>>> t.dtypesA int64dtype: object>>> t=pandas.read_csv(io.StringIO(data),parse_dates={'date':['A']},keep_date_col=True)>>> t.dtypesdate datetime64[ns]A objectdtype: object
The second time, the datatype of the column 'A' should also be int64.