mholt / PapaParse

Fast and powerful CSV (delimited text) parser that gracefully handles large files and malformed input
http://PapaParse.com
MIT License
12.54k stars 1.15k forks source link

Meta data in CSV #794

Closed dolanmiu closed 4 years ago

dolanmiu commented 4 years ago

I am tasked to parse a CSV file, but however, there is some meta data above the actual CSV content:

Can PapaParse handle this scenario?

Screenshot 2020-05-19 at 18 39 37

Notice how the CSV actually starts on line 34

pokoli commented 4 years ago

Yes, you can use the skiplines option to skip the first 34 lines and start parsing when required.

dolanmiu commented 4 years ago

Is there a way to also parse the first 34 lines?

I need those data points too @pokoli

dolanmiu commented 4 years ago

skipLines cant be found in the docs:

https://www.papaparse.com/docs