polars select
for lazyframe
Selects columns from lazyframe.
This command requires a plugin
The polars select
command resides in the polars
plugin. To use this command, you must install and register nu_plugin_polars
. See the Plugins chapter in the book for more information.
Signature
> polars select {flags} ...rest
Parameters
...rest
: Expression(s) that define the column selection
Input/output types:
input | output |
---|---|
any | any |
Examples
Select a column from the dataframe
> [[a b]; [6 2] [4 2] [2 2]] | polars into-df | polars select a
╭───┬───╮
│ # │ a │
├───┼───┤
│ 0 │ 6 │
│ 1 │ 4 │
│ 2 │ 2 │
╰───┴───╯