-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
read_csv: usecols
doesn't work if separator is not ","
#2733
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
I had a strange problem with the parameter |
I wrote a new test case in See garaud@fe36220 I don't get what it's wrong. I took a look on #2654. I think I'll read |
The C parser does not support multi-character and regex delimiters yet. Try |
OK. Thanks ! Good to know. Fisrt, I'll try with the Edit: In [24]: pd.read_csv(StringIO(data), delim_whitespace=True, header=None, usecols=(1,2))
Out[24]:
1 2
0 2 3
1 5 6
2 8 9 works fine. |
See #2748 A test case with the |
i added an explicit error message for this case. pushing fixing it til later |
Is this still an issue?
|
hmm seems ok can u take a quick look and see if u can find a release note that fixed this? |
Maybe it's #5211? |
closed by #5211 |
If I have data (without a header) separated by "," usecols works, however if the data is separated by white space it doesn't seem to work:
The text was updated successfully, but these errors were encountered: