def _not_in(x, y):
    """Compute the vectorized membership of ``x not in y`` if possible,
    otherwise use Python.
    """
    try:
        return ~x.isin(y)
    except AttributeError:
        if com.is_list_like(x):
            try:
                return ~y.isin(x)
            except AttributeError:
                pass
        return y not in x
dataset/ETHPy150Open pydata/pandas/pandas/computation/ops.py/_not_in/swapped operands of `not in`