Repository navigation
Replies: 1 comment
|
Hi @jze, interesting use case. Are you aware of CSV readers that support ignoring the trailing delimiter? I'm maintaining the R implementation for frictionless and rely on readr. While it supports trailing whitespace, it doesn't support trailing delimiters. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
It would be helpful to add an option to the Table Dialect to ignore a trailing delimiter. There are legacy CSV files that use these trailing delimiters. When you describe them as a Tabular Data Resource and validate them, an “extra column” error appears for each row.
Some background information: In Germany, there appears to be a fairly widespread standard in the financial sector called GDPdU ("Grundsätze zum Datenzugriff und zur Prüfbarkeit digitaler Unterlagen" = principles governing data access and the verifiability of digital records). The format is structured similarly to a Frictionless Data Package. It is a ZIP file containing CSV files and an XML file that describes the structure of the tables. I have written a Python program hat adds a datapackage.json file based on the XML file. Thus turning the GDPdU file into a complete Data Package. I'm not sure if the standard requires it, but all the examples I've seen so far have trailing delimiters in the CSV files.
All reactions