-
Notifications
You must be signed in to change notification settings - Fork 42
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
Error trying to open a tab-separated file #96
Comments
Thanks! Could you paste the command you used and a small (1-2 line) csv so I can reproduce the problem? |
Sure! |
Perfect! I will work on this. |
@Lireer do you mind if I pick your brain a little? It turns out that this issue is a little more difficult than I first thought. The There are two problems
For part 1 the relevant code is here: Lines 227 to 237 in 1206937
For part 2 the relevant code is here: Lines 573 to 587 in 1206937
|
I don't think the problem lies with the parsing of the delimiter, but with the way the TAB is entered into the shell. The correct way to enter the byte for a TAB The working solutions for some shells:
We could check the special case of the delimiter being the string Some more things I tried and what we receive as a delimiter:
|
I really like the idea of checking for the special case |
Here is another thought. If the file extension is I am fine being opinionated. As long as it is documented that Also, according to the above table |
Seems like a good idea to me as long as the effects of different file extensions are documented and setting the delimiter via cli options is easier than changing a files extension. So in my opinion we should check for the extension and parse values like Some thoughts on the design of the API: Implementing any of this shouldn't be a problem, I'm just wondering what kind of behavior and features do users expect and use. Would they expect a In general these options configure the reader using different ways. This means there should be an intuitive order of priority. I feel like it's quite easy to make automatic features unintuitive, so we should make sure they are clearly documented. For me the expected behavior would be:
|
I agree with making the CLI options take precedence. In my experience the most common exception to the single byte delimiters like So lets just allow users to pass |
Hi, I'm trying to visualize a TSV file, and I'm getting this error:
I'm using the latest Linux release.
The text was updated successfully, but these errors were encountered: