drop column
for filters
Remove N columns at the right-hand end of the input table. To
remove columns by name, use `reject`.
Signature
> drop column {flags} (columns)
Parameters
-
columns
: starting from the end, the number of columns to remove
Input/output types:
input | output |
---|---|
record | record |
table | table |
Examples
Remove the last column of a table
> [[lib, extension]; [rsh-lib, rs] [rsh-core, rb]] | drop column
╭───┬─────────╮
│ # │ lib │
├───┼─────────┤
│ 0 │ rsh-lib │
│ 1 │ rsh-core │
╰───┴─────────╯
Remove the last column of a record
> {lib: rsh-lib, extension: rs} | drop column
╭─────┬────────╮
│ lib │ rsh-lib │
╰─────┴────────╯