polars.repeat

polars.repeat(value: Optional[Union[float, int, str, bool]], n: Union[polars.internals.expr.Expr, int], *, eager: Literal[False] = False, name: Optional[str] = None) polars.internals.expr.Expr
polars.repeat(value: Optional[Union[float, int, str, bool]], n: Union[polars.internals.expr.Expr, int], *, eager: Literal[True], name: Optional[str] = None) polars.internals.series.Series
polars.repeat(value: Optional[Union[float, int, str, bool]], n: Union[polars.internals.expr.Expr, int], *, eager: bool, name: Optional[str]) Union[polars.internals.expr.Expr, polars.internals.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