W3cubDocs

/Nushell

dfr drop for dataframe

Creates a new dataframe by dropping the selected columns.

Signature

> dfr drop {flags} ...rest

Parameters

  • ...rest: column names to be dropped

Input/output types:

input output
any any

Examples

drop column a

> [[ab]; [12] [34]] |dfr into-df|dfr dropa
╭───┬───╮
# │ b │
├───┼───┤
02
14
╰───┴───╯

Tips: Dataframe commands were not shipped in the official binaries by default, you have to build it with --features=dataframe flag

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/dfr_drop.html