That is to say, there is a cast from a string to a float. Thus, INFI seems to be a reserved words. I have the same behaviour by replacing “INFI” with “INF”.
Is there a simple solution to avoid this behaviour ie to keep “INFI” as a string ? Thanks very much.
NB : Note that this new behaviour is obtained with the version CSV v0.5.9 of the CSV package.
With the version CSV v0.4.3 of the CSV package, I do not have this problem.
If there is no solution, is there another package to read a CSV file with Julia ? (except the one to come back to the CSV v0.4.3 version of the CSV package)
Yes, you can always manually specify what the type of a column should be, so doing types=[String], or w/ a Dict by column id or number: types=Dict(1=>String).
What’s going on here is that the Parsers.jl package parses both INF and INFINITY as valid Float64 values, and it looks like it considers any prefix in-between as valid as well, so this can ultimately be fixed in Parsers.jl itself.