Skip to content

Method for weighted mean with mismatched types is gone #475

@ararslan

Description

@ararslan

The fallback treats the first argument as a function apparently??

julia> mean(Union{Int,Missing}[1,2,3], weights([1,2,3]))
4.666666666666667

julia> @which mean(Union{Int,Missing}[1,2,3], weights([1,2,3]))
mean(f, A::AbstractArray) in Statistics at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Statistics/src/Statistics.jl:76

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions