Skip to content

Commit 8edd118

Browse files
committed
CLN: remove Index.__inv__
closes #22335
1 parent 49c6abb commit 8edd118

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pandas/core/indexes/base.py

-2
Original file line numberDiff line numberDiff line change
@@ -4689,7 +4689,6 @@ def _add_numeric_methods_disabled(cls):
46894689
cls.__neg__ = make_invalid_op('__neg__')
46904690
cls.__pos__ = make_invalid_op('__pos__')
46914691
cls.__abs__ = make_invalid_op('__abs__')
4692-
cls.__inv__ = make_invalid_op('__inv__')
46934692

46944693
def _maybe_update_attributes(self, attrs):
46954694
""" Update Index attributes (e.g. freq) depending on op """
@@ -4786,7 +4785,6 @@ def _evaluate_numeric_unary(self):
47864785
cls.__neg__ = _make_evaluate_unary(operator.neg, '__neg__')
47874786
cls.__pos__ = _make_evaluate_unary(operator.pos, '__pos__')
47884787
cls.__abs__ = _make_evaluate_unary(np.abs, '__abs__')
4789-
cls.__inv__ = _make_evaluate_unary(lambda x: -x, '__inv__')
47904788

47914789
@classmethod
47924790
def _add_numeric_methods(cls):

0 commit comments

Comments
 (0)