Spec-Zone.ru › Polars

polars.DataFrame.drop_in_place

DataFrame.drop_in_place(
    name: str,
) → Series

Удалить один столбец на месте и вернуть удалённый столбец.

Параметры:
name

Имя столбца, который нужно удалить.

Возвращает:
Series

Удалённый столбец.

Примеры

>>> df = pl.DataFrame(
...     {
...         "foo": [1, 2, 3],
...         "bar": [6, 7, 8],
...         "ham": ["a", "b", "c"],
...     }
... )
>>> df.drop_in_place("ham")
shape: (3,)
Series: 'ham' [str]
[
    "a"
    "b"
    "c"
]

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

Spec-Zone.ru

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