-
-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
Tilde expansion for paths (~/...) inconsistent between read_csv and to_csv #11438
Comments
Thanks for the report. Interested in submitting a Pull Request? |
Sure, I'll try to take a look this weekend. |
this might be useful :) https://github.com/pydata/pandas/blob/master/pandas/io/common.py#L197 |
Many thanks! |
Version 0.17.1 * tag 'v0.17.1': (168 commits) add nbviewer link Revert "DOC: fix sponsor notice" DOC: a few touchups DOC: fix sponsor notice DOC: warnings and remove HTML COMPAT: compat of scalars on all platforms, xref pandas-dev#11638 DOC: fix build errors/warnings DOC: whatsnew edits DOC: fix link syntax DOC: update release.rst / whatsnew edits BUG: fix col iteration in DataFrame.round, pandas-dev#11611 DOC: Clarify foramtting BUG: pandas-dev#11638 return correct dtype for int and float BUG: pandas-dev#11637 fix to_csv incorrect output. DOC: sponsor notice BUG: indexing with a range , pandas-dev#11652 Fix link to numexpr ENH: fixup tilde expansion, xref pandas-dev#11438 ENH: tilde expansion for write output formatting functions, pandas-dev#11438 DOC: fix up doc-string creations in generic.py ...
hi @aechase !! Are you still working on the issue? |
@puneet988 : This was actually resolved in #11458. We just forgot to close. You're more than welcome to checkout any of our other open issues if you want to contribute! 👍 |
When specifying a path in DataFrame.read_csv(), pandas has no problem with the tilde expansion:
But DataFrame.to_csv() doesn't understand this:
Instead, it needs the file name alone, or the full path:
test.to_csv('/Users/alexchase/Documents/test1.csv')
.The text was updated successfully, but these errors were encountered: