Skip to content

proportionmap should accept any iterator #842

@cossio

Description

@cossio
julia> x = [1, 2, 3]
3-element Array{Int64,1}:
 1
 2
 3

julia> proportionmap(skipmissing(x))
ERROR: MethodError: no method matching proportionmap(::Base.SkipMissing{Vector{Int64}})
Closest candidates are:
  proportionmap(::AbstractArray) at ~/.julia/packages/StatsBase/XgjIN/src/counts.jl:455
  proportionmap(::AbstractArray, ::AbstractWeights) at ~/.julia/packages/StatsBase/XgjIN/src/counts.jl:456
Stacktrace:
 [1] top-level scope
   @ REPL[4]:1

Ref. #581 for countmap.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions