Skip to content

ExprStringNameSpace.contains

Same as polars.Expr.str.contains

Parameters:

Name Type Description Default
s str

The string to check if the expression contains

required
Source code in pyquokka/expression.py
208
209
210
211
212
213
214
215
216
217
218
def contains(self, s):

    """
    Same as polars.Expr.str.contains

    Args:
        s (str): The string to check if the expression contains
    """

    assert type(s) == str
    return Expression(self.expr.sqlglot_expr.like("*{}*".format(s)))