pandas/core/index.py
def _add_numeric_methods_disabled(cls):
        """ add in numeric methods to disable """

        def _make_invalid_op(opstr):

            def _invalid_op(self, other):
                raise TypeError("cannot perform {opstr} with this index type: {typ}".format(opstr=opstr,
                                                                                         typ=type(self)))
            return _invalid_op

        cls.__mul__ = cls.__rmul__ = _make_invalid_op('multiplication')
        cls.__floordiv__ = cls.__rfloordiv__ = _make_invalid_op('floor division')
        cls.__truediv__ = cls.__rtruediv__ = _make_invalid_op('true division')
        if not compat.PY3:
            cls.__div__ = cls.__rdiv__ = _make_invalid_op('division')
 add in numeric methods to disable 
add in numeric methods to disable
add in numeric methods to disable
def _add_numeric_methods_disabled(cls):
        def _make_invalid_op(opstr):
            def _invalid_op(self, other):
                raise TypeError("cannot perform {opstr} with this index type: {typ}".format(opstr=opstr,
                                                                                         typ=type(self)))
            return _invalid_op
        cls.__mul__ = cls.__rmul__ = _make_invalid_op('multiplication')
        cls.__floordiv__ = cls.__rfloordiv__ = _make_invalid_op('floor division')
        cls.__truediv__ = cls.__rtruediv__ = _make_invalid_op('true division')
        if not compat.PY3:
            cls.__div__ = cls.__rdiv__ = _make_invalid_op('division')
def _add_numeric_methods_disabled ( cls ) : def _make_invalid_op ( opstr ) : def _invalid_op ( self , other ) : raise TypeError ( "cannot perform {opstr} with this index type: {typ}" . format ( opstr = opstr , typ = type ( self ) ) ) return _invalid_op cls . __mul__ = cls . __rmul__ = _make_invalid_op ( 'multiplication' ) cls . __floordiv__ = cls . __rfloordiv__ = _make_invalid_op ( 'floor division' ) cls . __truediv__ = cls . __rtruediv__ = _make_invalid_op ( 'true division' ) if not compat . PY3 : cls . __div__ = cls . __rdiv__ = _make_invalid_op ( 'division' )
add in numeric methods to disable
add in numeric methods to disable
""" add in numeric methods to disable """
cls