polars.repeat#

polars.repeat(value: float | int | str | bool | None, n: polars.internals.expr.expr.Expr | int, *, eager: Literal[False] = False, name: str | None = None) Expr[source]#
polars.repeat(value: float | int | str | bool | None, n: polars.internals.expr.expr.Expr | int, *, eager: Literal[True], name: str | None = None) Series
polars.repeat(value: float | int | str | bool | None, n: polars.internals.expr.expr.Expr | int, *, eager: bool, name: str | None) polars.internals.expr.expr.Expr | polars.internals.series.series.Series

Repeat a single value n times.

Parameters:
value

Value to repeat.

n

repeat n times

eager

Run eagerly and collect into a Series

name

Only used in eager mode. As expression, us alias