-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ExtensionArray.value_counts #22843
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
Personally I would remove it from the EA interface. |
Yes, the main sticking point though is the index. Once we have official support for extension indexes, we should be able to update |
nog against removing |
agreed on removing from EAs. It introduces a nasty dependency of the EA code on index/series code. |
I tried this the other day and found I had to do a lot of special-casing for Categorical and SparseArray. Has anyone else tried this? |
AFAICT, based on a) trying to implement this and b) previous discussions which I've lost track of:
|
Do you remember mote details on the issues you ran into for Categorical? |
Not off the top of my head, no |
I'm implementing an ExtensionArray interface and am hitting a failing test due to the lack of |
AFAICT value_counts is de-facto required but not documented as such. As above I think it'd be great if we could implement it in terms of lower-level methods, but until then I think it needs to be documented as something authors are expected to implement. |
Is this required? Right now
pandas/pandas/core/algorithms.py
Lines 708 to 711 in a03d953
The text was updated successfully, but these errors were encountered: