Skip to content

ExprDateTimeNameSpace.weekday

Same as polars.Expr.dt.weekday

Source code in pyquokka/expression.py
333
334
335
336
337
338
339
def weekday(self):

    """
    Same as polars.Expr.dt.weekday
    """

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