def __setcols(self, value):
        for key in self.__data.copy():
            if key[1] >= value:
                del self.__data[key]
        self.__cols = value
dataset/ETHPy150Open fredrik-johansson/mpmath/mpmath/matrices/matrices.py/_matrix.__setcols/original