Skip to content
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

Seems cumbersome interface in certain cases? #55

Open
kb1ooo opened this issue Oct 25, 2017 · 2 comments
Open

Seems cumbersome interface in certain cases? #55

kb1ooo opened this issue Oct 25, 2017 · 2 comments

Comments

@kb1ooo
Copy link

kb1ooo commented Oct 25, 2017

Say I have a CSV file with 30 columns, an unreliable header (but order is guaranteed), and I only care about 4 columns. So, I've got to call set_header with 30 names for the columns. Then in my read call I need to pass 30 variables. Is that correct? Seems cumbersome, even if I needed all 30 columns. It would be nice to have an option where the row elements are returned in std::vector and then I do the data type conversions myself for the columns I need.

@ben-strasser
Copy link
Owner

ben-strasser commented Oct 25, 2017 via email

@mom1705
Copy link

mom1705 commented May 28, 2020

Is it possible that we can set header but not make it compulsory.
someone might choose not to fill, currently it is crashing if we set it but don't fill in csv file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants