-
Notifications
You must be signed in to change notification settings - Fork 368
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
When vcat dataframes, ordering of categorical variables is lost #2002
Comments
Indeed it would be better to ensure that we properly preserve this. Probably @nalimilan has most experience to fix this, as this is a tricky case. |
Good catch. The problem is that we don't call But maybe we can change |
I have filed JuliaData/CategoricalArrays.jl#223 to implement this, please have a look. I've realized that we already had a similar special case in CategoricalArrays' Another solution would be to mark all |
vcat
on the categorical array preserves the ordering, but on the dataframe it is lost. Example below:outputs:
The text was updated successfully, but these errors were encountered: