You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to tell CSV.read()not to try to unify types for a column? I've got some long form data where the values are a mix of Ints, Floats, and strings. Right now it's just parsing everything as a string and I have to do a second pass to correct everything
Ok, so one thing we could do that I've been thinking of doing anyway (since the introduction of the CSV.Rows type) is to package up our CSV.detect machinery so you could just do CSV.detect(str::String), and it would use all the same logic CSV.jl already uses when parsing a file to detect column types. Then you could use CSV.Rows and just call detect to parse the types, or in your case, use CSV.File and apply detect afterwards on the string column. Would you mind opening an issue for this? I don't think it should be too hard to do.
The text was updated successfully, but these errors were encountered:
… useful when using CSV.Rows, or if you have a weird scenario where your column is parsed as a String, but you might want to try to convert them to a value anyway. Closes#462
… useful when using CSV.Rows, or if you have a weird scenario where your column is parsed as a String, but you might want to try to convert them to a value anyway. Closes#462 (#463)
From discussion on slack, started with me:
@quinnj said:
The text was updated successfully, but these errors were encountered: