-
Notifications
You must be signed in to change notification settings - Fork 7
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
Comment block #2
Comments
Yes, we had the same discussion somewhere else. Something I want to do (and Noam Ross has done some of this on Twitter) is a small table that shows support for comment lines and skipping lines in the header in the common parsers. The |
I wrote up a summary of CSV parsers a little while ago - quite a few of them have a parameter for a character that should be treated as the start of a comment line. |
Great! I've started a table at https://github.com/csvy/csvy.github.io/blob/master/index.md summarizing the support for skipping lines and comment lines, based on your summary. |
I think it would be a good idea to change the example on the homepage to comment out the yaml block, if not formally make that part of the spec. |
@hadley I've been thinking about it, I've seen that there is no real interest in meeting this:
@leeper in his project rio they use csvy library for R for read one resource in one file, but the Tabular Data Package could contain multiple resource. How can we reach a consensus on the specification? |
I think it's worth formally allowing two specifications:
I don't see the advantage of supporting multiple yaml headers - I don't think it's necessary to provide the metadata for multiple resources embedded in a single resource. In other words, the equivalent to a "tabular data package" would simply be a directory of csvy files. |
It's common (though not specified) for lines beginning with
#
at the start of a CSV file to be treated as comments (with a "citation needed" caveat - I'm not sure which parsers, if any, do this by default).If the YAML header was to have a '#' at the start of each line, this might be more compatible with parsers that aren't expecting a YAML block?
The text was updated successfully, but these errors were encountered: