Function polars_lazy::dsl::functions::repeat
source · pub fn repeat<E>(value: E, n: Expr) -> Exprwhere
E: Into<Expr>,
Expand description
Create a column of length n
containing n
copies of the literal value
. Generally you won’t need this function,
as lit(value)
already represents a column containing only value
whose length is automatically set to the correct
number of rows.