

def _set_names(self, values, level=None):
    if (len(values) != 1):
        raise ValueError(('Length of new names must be 1, got %d' % len(values)))
    level.name = values[0]

dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py Index._set_names/VarMisuse@42/67 `self`->`level`