-
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
Decide if we want to copy levels of CategoricalValue if we do Tables.allocatecolumn #2104
Comments
OK. I have investigated the cases when we might have problems with
(for non-zero row operations this is OK, as we perform assignment) So we should decide if we are actually OK with this behavior or not, i.e. if 0-length categorical vector should carry over its levels to a vcat-ted vector if the rules say that the resulting vector should also be categorical. |
That's definitely a bug. That's indeed the limit of the approach in which we merge levels on Though in this particular case, we could change (All of this would not happen if we had a good promotion mechanism in |
I would go for the the fix of We should release CategoricalArrays.jl soon anyway given the JuliaData/CategoricalArrays.jl#250 fix (maybe also JuliaData/CategoricalArrays.jl#244 could be fixed by then - but it is less priority). |
JuliaData/CategoricalArrays.jl#253 fixes |
OK - this can be closed then. |
Given JuliaData/Tables.jl#99 (comment) should we then add after
Tables.allocatecolumn
a special check forCategoricalValue
passed and set levels properly (there like 5 to 10 places in DataFrames.jl where this happens; I can do this if we agree on this).CC @nalimilan @quinnj
The text was updated successfully, but these errors were encountered: