-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when loading complex NaN's #860
Comments
Update: Using |
Hmmm, yes, an interesting problem. For non-standard types, we currently rely on calling |
Should fix JuliaData/CSV.jl#860. (probably should backport this to 1.X branch).
* Fix case where fallback Base.parse throws error Should fix JuliaData/CSV.jl#860. (probably should backport this to 1.X branch).
* Fix case where fallback Base.parse throws error Should fix JuliaData/CSV.jl#860. (probably should backport this to 1.X branch).
Ok, this was fixed in JuliaData/Parsers.jl#86 |
Thanks :) |
I have a CSV File which contains complex values and some values are
NaN + NaN*im
, which throws an error when I try to read it with type fixed toComplexF64
. The underlying problem seems to be thatparse(ComplexF64, "NaN + NaN*im")
throws the error:ERROR: ArgumentError: cannot parse " NaN*" as Float64
. I tried to "solve" this by settingstrict=false
like:df = CSV.File(fname, header=header, type=ComplexF64, strict=false) |> DataFrame
where
fname
is the location of my file andheader
is the header, but it throws the same error.Am I using
strict
wrong? And is the behavior ofparse
intentional?The text was updated successfully, but these errors were encountered: