Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wesm opened this issue Oct 22, 2010 · 1 comment
Closed

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

wesm opened this issue Oct 22, 2010 · 1 comment

Comments

@wesm
Copy link
Member

wesm commented Oct 22, 2010

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.

@wesm
Copy link
Member Author

wesm commented Jan 11, 2011

fixed in git HEAD

stijnvanhoey pushed a commit to stijnvanhoey/pandas that referenced this issue Dec 23, 2019
KWJ222 pushed a commit to Herdi2/pandas that referenced this issue Mar 4, 2025
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant