Skip to content

Commit

Permalink
fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
skirui-source committed Oct 6, 2022
2 parents 82f5dfc + 029b1db commit 407a2cc
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions python/cudf/cudf/core/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,15 +896,14 @@ def isin(self, values):

return self._values.isin(values).values

def __neg__(self):
return -self._as_int_index()

# Patch in all binops and unary ops, which bypass __getattr__ on the instance
# and prevent the above overload from working.
for unaop in ("__neg__", "__pos__", "__abs__"):
setattr(
RangeIndex,
unaop,
lambda self, op=unaop: getattr(self._as_int64(), op)(),
)
def __pos__(self):
return +self._as_int_index()

def __abs__(self):
return abs(self._as_int_index())


class GenericIndex(SingleColumnFrame, BaseIndex):
Expand Down

0 comments on commit 407a2cc

Please sign in to comment.