Skip to content

ExprStringNameSpace.ends_with

Same as polars.Expr.str.ends_with

Parameters:

Name Type Description Default
s str

The string to check if the expression ends with

required
Source code in pyquokka/expression.py
232
233
234
235
236
237
238
239
240
241
242
def ends_with(self, s):

    """
    Same as polars.Expr.str.ends_with

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

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