polars.Series.repeat_by
-
Repeat the elements in this Series as specified in the given expression.
The repeated elements are expanded into a List.
- Parameters:
-
- by
-
Numeric column that determines how often the values will be repeated. The column will be coerced to UInt32. Give this dtype to make the coercion a no-op.
- Returns:
-
- Expr
-
Expression of data type List, where the inner data type is equal to the original data type.
Series.repeat_by(
by: int | IntoExprColumn,
) → Self
© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/series/api/polars.Series.repeat_by.html