def _boolean_index_to_array(self, i):
        if 1 > i.ndim:
            raise IndexError('invalid index shape')
        return i.nonzero()[0]
dataset/ETHPy150Open scipy/scipy/scipy/sparse/sputils.py/IndexMixin._boolean_index_to_array/swapped operands of `>`