Skip to content
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

proportionmap should accept any iterator #842

Open
cossio opened this issue Dec 3, 2022 · 0 comments · May be fixed by #855
Open

proportionmap should accept any iterator #842

cossio opened this issue Dec 3, 2022 · 0 comments · May be fixed by #855

Comments

@cossio
Copy link

cossio commented Dec 3, 2022

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.

@ArunS-tack ArunS-tack linked a pull request Mar 4, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants