polars.Series.interpolate
-
Интерполировать промежуточные значения.
Пустые значения в начале и конце ряда остаются пустыми.
- Параметры:
-
-
method{‘linear’, ‘nearest’} -
Метод интерполяции.
-
Примеры
>>> s = pl.Series("a", [1, 2, None, None, 5]) >>> s.interpolate() shape: (5,) Series: 'a' [f64] [ 1.0 2.0 3.0 4.0 5.0 ]
Series.interpolate(
method: InterpolationMethod = 'linear',
) → Series
© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/series/api/polars.Series.interpolate.html