-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DEPR: ExtensionOpsMixin -> OpsMixin #38142
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
DEPR: ExtensionOpsMixin -> OpsMixin #38142
Conversation
thanks @jbrockmendel |
Sorry, but this was not really ready:
I don't know if we should keep the class, but we should at least discuss it (and check if there is usage of it), and if we deprecate it give a clear reasoning and alternative. |
@jorisvandenbossche ahh re-read your comment on the issue. if you want to revert ok, but to be honest this looks better / simpler. |
@@ -487,6 +487,7 @@ Deprecations | |||
- Deprecated :meth:`Index.asi8` for :class:`Index` subclasses other than :class:`.DatetimeIndex`, :class:`.TimedeltaIndex`, and :class:`PeriodIndex` (:issue:`37877`) | |||
- The ``inplace`` parameter of :meth:`Categorical.remove_unused_categories` is deprecated and will be removed in a future version (:issue:`37643`) | |||
- The ``null_counts`` parameter of :meth:`DataFrame.info` is deprecated and replaced by ``show_counts``. It will be removed in a future version (:issue:`37999`) | |||
- :class:`ExtensionOpsMixin` and :class:`ExtensionScalarOpsMixin` are deprecated and will be removed in a future version. Use ``pd.core.arraylike.OpsMixin`` instead (:issue:`37080`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't ever document something in pandas.core
as public. If this is going to change, it should be exposed outside of core
.
cc @Dr-Irv, who I believe implemented the mixin. I suspect you're using it? |
I would say, let's revert it for now, until we have better discussed this. @jbrockmendel can you do that? |
This reverts commit f65f0d3.
Actually, clicking the button is not that hard ;) -> #38158 |
I reopened the issue, let's continue the discussion there: #37080 |
actually you can do this from the UI itself? (create a revert) |
…as-dev#38158) This reverts commit f65f0d3.
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff