-
Notifications
You must be signed in to change notification settings - Fork 40
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
Mean of an array with missing values does not work if the dims argument is provided #7
Comments
It appears to be because of this: https://github.com/JuliaLang/julia/blob/master/stdlib/Statistics/src/Statistics.jl#L134
That gets passed to |
Going further, we get that result from |
|
sum also doesn't work now? |
@Moelf This failure is also interesting: julia> mean([missing 1; 3 4]; dims=1)
ERROR: InexactError: Int64(2.5) It happens because we use the type of
Actually, no,
The only way to fix this is to redesign the reducedim code, as |
Any news/updates/new ideas on this? |
Expected is:
(credit to @nickrobinson251 who found this)
The text was updated successfully, but these errors were encountered: