-
Notifications
You must be signed in to change notification settings - Fork 77
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
"Could not determine delimiter" when trying to render TSV via stdin #54
Comments
OK, apparently the problem is with only sniffing truncated data ( Changing the logic to sniff the first N lines instead of first 1024 characters would solve this issue. |
hi, |
Wow, is that the reason why?!? 😲 I've been wondering for years why the code example in the official Python csv.Sniffer docs does not seem to work. I never realized it is because it breaks in the middle of a line. 🤨 Seems to me this should be fixed in the official Python docs as well, since I've never managed to get it to work... Anyway, thanks for this gem! 😊 |
Is there any |
I just submitted a pull request to add |
Rendering TSV (tab-separated values) works when passing a file name:
But it fails for the same file when passing as stdin (
-
) with error "Could not determine delimiter":Apparently the CSV/TSV sniffer does not work correctly and the detection via the file extension (
.tsv
) makes it work (excel-tab
dialect ofcsv
parser) when passing the file name, but not when passing the same data via stdin (-
).The text was updated successfully, but these errors were encountered: