

def _validate_for_numeric_unaryop(self, op, opstr):
    ' validate if we can perform a numeric unary operation '
    if (not self._is_numeric_dtype):
        raise TypeError('cannot evaluate a numeric op {opstr} for type: {typ}'.format(opstr=op, typ=type(self)))

dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py Index._validate_for_numeric_unaryop/VarMisuse@35/92 `opstr`->`op`