DelimitedFiles
can not parse a file that has an extra space after a quoted field:
txt = "a,\"b\" " # note the extra space at the end there
file = "tmp.csv"
open(file, "w") do io
print(io, txt)
end
using DelimitedFiles
x = readdlm(file, ',') # ERROR: unexpected character ' ' after quoted field at row 1 column 2
But CSV manages alright:
julia> using CSV, Tables
julia> x = CSV.File(file, header = ["h1", "h2"]) |> Tables.columntable
(h1 = Union{Missing, String}["a"], h2 = Union{Missing, String}["b"])