Closed tiemvanderdeure closed 1 month ago
Thanks! Good to have
For my understanding is there a reason these things don't "just work" already? Does CategoricalArrays.jl not use similar
or not accept AbstractArray
?
They don't work already. categorical
errors due to an ambiguous dispatch of copyto!
, cut
does not error but returns a CategoricalArray
(without dimensions). All of the other methods dispatch on CategoricalArray
.
Ah right, they haven't written it to be extensible at all.
Extend CategoricalArrays, so
categorical(x::DimArray)
returns aDimArray
with categorical values, and common (documented) operations on categorical arrays work on such categorical DimArrays.