polars.Series.new_from_index
-
Создаёт новый Series, заполненный значениями из заданного индекса.
Примеры
>>> s = pl.Series("a", [1, 2, 3, 4, 5]) >>> s.new_from_index(1, 3) shape: (3,) Series: 'a' [i64] [ 2 2 2 ]
Series.new_from_index(
index: int,
length: int,
) → Self
© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/series/api/polars.Series.new_from_index.html