Skip to content

ExprDateTimeNameSpace.week

Same as polars.Expr.dt.week

Source code in pyquokka/expression.py
341
342
343
344
345
346
347
def week(self):

    """
    Same as polars.Expr.dt.week
    """

    return Expression(sqlglot.dataframe.sql.Column(sqlglot.exp.Anonymous(this = "weekofyear", expressions = [self.expr.sqlglot_expr.expression])))