-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Implement CategoricalIndex #7629
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
Comments
It occurs to me now (probably already obvious to others) that the implementation of |
I haven't looked into So this might be as easy as coping the Index type for string, make that accept only a |
I would also like to see a categorical index. This is important when trying to avoid object dtypes for efficiency's sake. |
In all seriousness, this should not be very hard to do -- much easier than my IntervalIndex PR (which I will finish eventually). The main unresolved question is how to handle reindexing with |
This is fairly important to me. What is the best way to push on this? |
I've got some time over the next couple nights. Let me give it a shot quick. We've got an RC for |
this might be possible for 0.16.1. 0.16.0 is coming out in 2 days. as @shoyer mentions, this is not that difficult, but some api decisions to make |
Fair enough. It may be best to just to skip a 0.16.1 and do a a 0.17 soon after 0.16. This could potentially break API (implicitly, since I don't think the behavior of pd.Index(categorical) was documented). |
we'll see how it goes |
When #7217 becomes available, it would be nice to also have a 'CategoricalIndex' so that the sorting behaviour based on levels will be preserved when a categorical becomes a index:
CC: @shoyer
The text was updated successfully, but these errors were encountered: