-
Notifications
You must be signed in to change notification settings - Fork 370
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
Categorical! to include Char #1282
Comments
So, to rephrase, you suggest that |
Currently Categorical Arrays only treats
That should be fine as for developing My point is that
why not,
I am unfamiliar if people actually use |
Ah, you refer to that issue. It's hard to decide which types should be considered as categorical and which types shouldn't. I'd tend to think we should either convert all types, or only strings by default. Any other combination would be too subtle (what about symbols? dates? custom types). We could add an argument which would default to @cjprybol What do you think? |
I think that sounds like a fantastic approach. Given that |
The current "default" behavior is to make
AbstractVector{T} where T <: AbstractString
aCategoricalArrays.CategoricalVector
and more specificallyCategoricalArrays.CategoricalVector{T} where {T <: CategoricalArrays.CategoricalString, ...}
However, I believe that a better default would be to include columns that are
eltype(col) <: Char
as well.The text was updated successfully, but these errors were encountered: