Skip to content

parseCSV on result of toCSV does not preserve index type #19

Closed
@wesm

Description

@wesm

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?

  1. Create a DataFrame with date objects in the index
  2. Write to csv using toCSV method
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions