polars.DataFrame.drop_in_place
-
Удалить один столбец на месте и вернуть удалённый столбец.
- Параметры:
-
- 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" ]
DataFrame.drop_in_place(
name: str,
) → Series
© 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