

def view(self, cls=None):
    if ((cls is not None) and (not hasattr(cls, '_typ'))):
        result = self._data.view(cls)
    else:
        result = self._shallow_copy()
    if isinstance(result, Index):
        result._id = self._id
    return cls

dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py Index.view/VarMisuse@81/93 `result`->`cls`