class_docstr: Utility class for the `when-then-otherwise` expression.
  
  Represents the initial state of the expression after `pl.when(...)` is called.
  
  In this state, `then` must be called to continue to finish the expression.
class_docstr_tok: ["Utility","class","for","the","`","when-then-otherwise","`","expression",".","Represents","the","initial","state","of","the","expression","after","`","pl.when","(","...",")","`","is","called",".","In","this","state",",","`","then","`","must","be","called","to","continue","to","finish","the","expression","."]
docstr: Attach a statement to the corresponding condition.
  
  Parameters
  ----------
  statement
      The statement to apply if the corresponding condition is true.
      Accepts expression input. Non-expression inputs are parsed as literals.
docstr_tok: ["Attach","a","statement","to","the","corresponding","condition",".","Parameters","--","--","--","--","--","statement","The","statement","to","apply","if","the","corresponding","condition","is","true",".","Accepts","expression","input",".","Non-expression","inputs","are","parsed","as","literals","."]
code: def then(self, statement: IntoExpr) -> Then:
      """
      Attach a statement to the corresponding condition.
  
      Parameters
      ----------
      statement
          The statement to apply if the corresponding condition is true.
          Accepts expression input. Non-expression inputs are parsed as literals.
  
      """
      statement_pyexpr = parse_as_expression(statement)
      return Then(self._when.then(statement_pyexpr))
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any, Iterable
  import polars.functions
  from polars.expr.expr import Expr
  from polars.utils._parse_expr_input import parse_as_expression, parse_when_constraint_expressions
  from polars.utils._wrap import wrap_expr
label_desc: Use image node_id 2 for calling the When obj's underlying member method code with example usage: obj.then(statement) and returns: Then