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

CSV without headers #22

Open
mariovillamizar opened this issue Jul 21, 2016 · 1 comment
Open

CSV without headers #22

mariovillamizar opened this issue Jul 21, 2016 · 1 comment

Comments

@mariovillamizar
Copy link

I'm downloading a cvs file without headers. I'm getting the next cvs string:

0.183764, -0.309156, 0.492920
0.183765, -0.309157, 0.492921
0.183766, -0.309158, 0.492922

Actually this library is taking as header the elements of the first row, and the rows are the elements of second a third rows from the downloaded string.
I have fixed this bug with this code:

let csv = CSwiftV(string: csvString, separator: ",", headers: [String](count: 3, repeatedValue: ""))
However, is there any way to disable the headers when these doesn't exist?... If not, can you add this to the library please?.. Maybe something like this:

let csv = CSwiftV(string: csvString, headersExist: false)

@Daniel1of1
Copy link
Owner

Hi, Sorry for such a late response. This is a really good issue. I don't have too much time at the moment, but I'll keep the issue open and it will be the next new feature to add.

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

2 participants