ben-strasser / fast-cpp-csv-parser

fast-cpp-csv-parser
BSD 3-Clause "New" or "Revised" License
2.09k stars 435 forks source link

Parsing a CSV with unknown number of columns #140

Open SimonHeim opened 1 year ago

SimonHeim commented 1 year ago

What is the recommended method to parse a CSV when the number of columns is not known at compile time?

ghost commented 1 year ago

pandas?

SimonHeim commented 1 year ago

@wulj1 I am parsing in C++, hence my question on this repo.

I would like to open the file, count the number of columns, and then parse that number of columns. Is this possible with fast-cpp-csv-parser?

ghost commented 1 year ago

As far as I know, the column number fast-cpp-csv-parser can parsed is fixed at the compile time, you can not parse another different csv headers with a precompiled one correctly.