Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Tilde expansion for paths (~/...) inconsistent between read_csv and to_csv #11438
Comments
TomAugspurger
added Bug Data IO
labels
Oct 27, 2015
TomAugspurger
added this to the
0.17.1
milestone
Oct 27, 2015
|
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 |
jreback
added Enhancement and removed Bug
labels
Oct 27, 2015
jreback
modified the milestone: Next Major Release, 0.17.1
Oct 27, 2015
jreback
added Difficulty Novice Effort Low
labels
Oct 27, 2015
|
Many thanks! |
aechase
referenced
this issue
Oct 28, 2015
Closed
ENH: tilde expansion for write functions, #11438 #11458
jreback
added a commit
that referenced
this issue
Nov 19, 2015
|
|
aechase + jreback |
ea758cd
|
jreback
added a commit
that referenced
this issue
Nov 19, 2015
|
|
jreback |
d85db2a
|
yarikoptic
added a commit
to neurodebian/pandas
that referenced
this issue
Dec 3, 2015
|
|
yarikoptic |
9b2e35f
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
aechase commentedOct 27, 2015
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').