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:

inputoutput
anyany

Examples

drop column a

> [[a b]; [1 2] [3 4]] | polars into-df | polars drop a
╭───┬───╮
 # │ b │
├───┼───┤
 0 2
 1 4
╰───┴───╯