parseCSV on result of toCSV does not preserve index type · Issue #19 · pandas-dev/pandas (original) (raw)
From Google Code: http://code.google.com/p/pandas/issues/detail?id=14
First of all, thanks very much for this very nice project. I find it extremely useful.
I ran into a very minor issue:
What steps will reproduce the problem?
- Create a DataFrame with date objects in the index
- Write to csv using toCSV method
- Read DataFrame using parseCSV method
What is the expected output? What do you see instead?
I had hoped that the index of the parsed DataFrame would
consist of date objects, instead they are strings.
What version of the product are you using? On what operating system?
Trunk, revision 202. Ubuntu 10.10
Please provide any additional information below.
The reason is that toCSV writes the first column header as "index"
If it were to leave it blank, things work as I expect.