-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
read_csv does not set index name on empty dataframe #10184
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
Comments
ok, will mark as a bug. want to do a pull-request to fix? |
No, I don't have a patch. |
@corr723 well if you would like to work on one would be gr8 |
No plan to work on one, sorry |
Closed by #10302 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If foo.csv contains
then you get the normal behavior:
but if you remove the data row "1,2" in the CSV the index name gets dropped:
This means round-tripping with to_csv/read_csv fails for empty dataframes.
The text was updated successfully, but these errors were encountered: