Skip to content

ExprDateTimeNameSpace.year

Same as polars.Expr.dt.year

Source code in pyquokka/expression.py
357
358
359
360
361
362
363
def year(self):

    """
    Same as polars.Expr.dt.year
    """

    return Expression(F.year(self.expr.sqlglot_expr))