polars drop for dataframe
Creates a new dataframe by dropping the selected columns.
Signature
> polars drop {flags} ...rest
Parameters
-
...rest: Column names to be dropped.
Input/output types:
| input | output |
|---|---|
| polars_dataframe | polars_dataframe |
| polars_lazyframe | polars_lazyframe |
Examples
drop column a
> [[a b]; [1 2] [3 4]] | polars into-df | polars drop a ╭───┬───╮ │ # │ b │ ├───┼───┤ │ 0 │ 2 │ │ 1 │ 4 │ ╰───┴───╯
Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/polars_drop.html