Skip to content

Please add YAML front matter block support for pandas.io.parsers.read_csv #9613

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

Closed
jrovegno opened this issue Mar 8, 2015 · 5 comments
Closed
Labels
Enhancement IO CSV read_csv, to_csv

Comments

@jrovegno
Copy link

jrovegno commented Mar 8, 2015

Github show me how cool can be use YAML front matter blocks, and now I want to use them to put metadata in my datasets, this must be the new standard. It's easy, human readable and simple.

File example of the format
https://raw.githubusercontent.com/jrovegno/csvy/master/data.csvy

Regards

Javier

@jreback jreback added Enhancement IO CSV read_csv, to_csv labels Mar 8, 2015
@jreback
Copy link
Contributor

jreback commented Mar 8, 2015

is this a defined (meaning regular / standard type of format)? is it always detectable via the '---'?

@jrovegno
Copy link
Author

jrovegno commented Sep 2, 2015

I am developing a draft specification of the file format
http://jrovegno.github.io/csvy/

@jbrockmendel
Copy link
Member

Has this format caught on since the OP?

@janosh
Copy link
Contributor

janosh commented Jul 27, 2020

Doesn't seem to have caught on much since 2015 but I think it's a cool idea.

@mroeschke
Copy link
Member

Thanks for the suggestion, but it looks like this format hasn't taken off and probably not suitable for pandas proper. Ideally, an external library can parse the YAML format into python objects from which pd.DataFrame can ingest. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement IO CSV read_csv, to_csv
Projects
None yet
Development

No branches or pull requests

5 participants