Skip to content

Commit c17322e

Browse files
committed
Wrap _cat_compare_op with CompWrapper
1 parent 99f8afd commit c17322e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/core/arrays/categorical.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import pandas.core.common as com
3535
from pandas.core.config import get_option
3636
from pandas.core.missing import interpolate_2d
37+
from pandas.core.ops import CompWrapper
3738
from pandas.core.sorting import nargsort
3839

3940
from pandas.io.formats import console
@@ -52,6 +53,7 @@
5253
Use 'allow_fill=False' to accept the new behavior.""")
5354

5455

56+
@CompWrapper(inst_from_senior_cls=True, zerodim=True)
5557
def _cat_compare_op(op):
5658
def f(self, other):
5759
# On python2, you can usually compare any type to any type, and

0 commit comments

Comments
 (0)