JuliaStats / RDatasets.jl

Julia package for loading many of the data sets available in R
GNU General Public License v3.0
159 stars 56 forks source link

datasets() gives harmless(?) parsing warning #60

Closed ohadle closed 4 years ago

ohadle commented 5 years ago
julia> ds = RDatasets.datasets()
warning: failed parsing String on row=161, col=3, error=INVALID: OK, QUOTED, DELIMITED, INVALID_DELI
MITER
733×5 DataFrame
...

julia> ds[161, 3]
"Data from A.-M. Guerry, \\"
alejandromerchan commented 5 years ago

I've seen those warning popping up in the new version of CSV.jl. They are harmless, but show you possible problems with your data. In your case, for example, "\" is the default escape character, so the parse probably doesn't know how to deal with it. That's my guess. I submitted an issue to CSV, and they might implement a kwarg that silences the warnings if needed.