-
Notifications
You must be signed in to change notification settings - Fork 33
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
Adding levels in CategoricalValue call #364
Comments
Alternatively maybe we could allow |
Did this came up in a real use case? Throwing an error has the advantage of being explicit. Otherwise an ordered pool would be made unordered when adding the level, so if you're calling
|
The use case is in JuliaData/DataFrames.jl#2828 where you now have to write e.g.:
to keep the unstacked columns categorical.
After thinking about it I am not a fan of this
Yes, and there is no rush to decide what we should do as these things are tricky. My intention was just to have a shorter version of |
Another situation where it could be useful is e.g. in |
@nalimilan In the following example:
The question is if maybe we should allow
CategoricalValue(4, x)
to add level to pool ofx
(if this would be allowed in assignment tox
) rather than erroring?I am not fully convinced though.
The text was updated successfully, but these errors were encountered: