

def _assert_can_do_op(self, value):
    ' Check value is valid for scalar op '
    if (not lib.isscalar(value)):
        msg = "'value' must be a scalar, passed: {0}"
        raise TypeError(value.format(type(value).__name__))

dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py Index._assert_can_do_op/VarMisuse@34/77 `msg`->`value`