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
Here are some cor corner cases that would be good to fix by 2.0 release of Julia:
julia> cor(Union{Float64, Missing}[missing]) # this is the expected result
1.0
julia> cor([missing])
missing
julia> cor(Any[missing])
ERROR: MethodError: no method matching zero(::Type{Any})
julia> cor(Any[1])
ERROR: MethodError: no method matching zero(::Type{Any})
EDIT: this is based on the assumption that if someone wants cor and has missing this missing represents a number (and not e.g. a string)
The text was updated successfully, but these errors were encountered:
Here are some
cor
corner cases that would be good to fix by 2.0 release of Julia:EDIT: this is based on the assumption that if someone wants
cor
and hasmissing
this missing represents a number (and not e.g. a string)The text was updated successfully, but these errors were encountered: