polars select for lazyframe

Selects columns from lazyframe.

Signature

> polars select {flags} ...rest

Parameters

  • ...rest: Expression(s) that define the column selection

Input/output types:

inputoutput
anyany

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
╰───┴───╯