-
Notifications
You must be signed in to change notification settings - Fork 372
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
[BREAKING] Refactor unstack #2494
Conversation
In the end I try to sort and reshape without sorting if it fails. I have removed CategoricalArrays.jl dependency, but there are 2 places that are problematic because of this (both are corner cases so they can be resolved later). |
Co-authored-by: Milan Bouchet-Valat <nalimilan@club.fr>
I will implement |
@nalimilan - I have thought on it more and decided to recommend a different path. I propose use
|
I'm all for it if that's simpler and faster than master. Maybe just check with different shapes to be sure we don't miss something. |
Sure. Also this change will allow in the future to easily add support for multiple key columns - something that was requested. |
I went down to:
when I optimized the use of EDIT: I will finalize tests tomorrow and let you know when it is good to review. |
This should be good for a review |
For some reason I hadn't realized that using groupby makes it impossible to use the order of appearance. That's annoying, in particular as it means that even if you sort rows before calling |
I think we should resolve this issue in |
As an additional comment. By default
I think this is rare. |
Co-authored-by: Milan Bouchet-Valat <nalimilan@club.fr>
@nalimilan - I have pushed the fix that uses the order of first appearance both for rows and for columns. |
Co-authored-by: Milan Bouchet-Valat <nalimilan@club.fr>
…emove_categoricalarrays
Thank you! |
Fixes #2485