polars.DataFrame.drop_in_place

DataFrame.drop_in_place(name: str) polars.internals.series.Series

Drop in place.

Parameters
name

Column to drop.

Examples

>>> 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"
]