def notin ( arg , values ) : op = ops . NotContains ( arg , values ) return op . to_expr ( )
how to use isin and notin in python
Like isin but checks whether this expression s value ( s ) are not contained in the passed values . See isin docs for full usage .
def notin(arg, values):
    """
    Like isin, but checks whether this expression's value(s) are not
    contained in the passed values. See isin docs for full usage.
    """
    op = ops.NotContains(arg, values)
    return op.to_expr()