nushell/docs/commands/drop.md
Fernando Herrera dbcadbc12c moved folders
2022-02-07 19:23:12 +00:00

529 B

drop

Remove the last number of rows or columns.

Usage

> drop (rows) <subcommand> {flags} 

Subcommands

  • drop column - Remove the last number of columns. If you want to remove columns by name, try 'reject'.

Parameters

  • (rows) starting from the back, the number of rows to remove

Flags

  • -h, --help: Display this help message

Examples

Remove the last item of a list/table

> echo [1 2 3] | drop

Remove the last 2 items of a list/table

> echo [1 2 3] | drop 2