Spec-Zone.ru › Polars

polars.Series.rename

Series.rename(
    name: str_,
) → Series

Переименовать этот Series.

Псевдоним для Series.alias().

Параметры:
name

Новое имя.

Примеры

>>> s = pl.Series("a", [1, 2, 3])
>>> s.rename("b")
shape: (3,)
Series: 'b' [i64]
[
    1
    2
    3
]

© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/series/api/polars.Series.rename.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API