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)
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.
I'm downloading a cvs file without headers. I'm getting the next cvs string:
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)