Skip to content

ExprDateTimeNameSpace.strftime

Same as polars.Expr.dt.strftime, except no need to pass in a format string, because the only format accepted is "%Y-%m-%d %H:%M:%S.%f"

Source code in pyquokka/expression.py
382
383
384
385
386
387
388
def strftime(self):

    """
    Same as polars.Expr.dt.strftime, except no need to pass in a format string, because the only format accepted is "%Y-%m-%d %H:%M:%S.%f"
    """

    return Expression(self.expr.sqlglot_expr.cast("string"))