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

InvertedIndices don't work with CategoricalArrays #296

Open
greimel opened this issue Aug 25, 2020 · 0 comments
Open

InvertedIndices don't work with CategoricalArrays #296

greimel opened this issue Aug 25, 2020 · 0 comments

Comments

@greimel
Copy link
Contributor

greimel commented Aug 25, 2020

MWE

using CategoricalArrays, InvertedIndices
categorical(1:10)[Not(3)]

yields

ERROR: ArgumentError: unable to check bounds for indices of type InvertedIndex{Int64}
Stacktrace:
 [1] checkindex(::Type{Bool}, ::Base.OneTo{Int64}, ::InvertedIndex{Int64}) at ./abstractarray.jl:561
 [2] checkbounds at ./abstractarray.jl:491 [inlined]
 [3] checkbounds at ./abstractarray.jl:506 [inlined]
 [4] getindex(::CategoricalArray{Int64,1,UInt32,Int64,CategoricalValue{Int64,UInt32},Union{}}, ::InvertedIndex{Int64}) at /Users/fabiangreimel/.julia/dev/CategoricalArrays/src/array.jl:665
 [5] top-level scope at REPL[6]:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant