reject
for filters
Remove the given columns or rows from the table. Opposite of `select`.
Signature
> reject ...rest
Parameters
...rest
: the names of columns to remove from the table
Notes
To remove a quantity of rows or columns, use skip
, drop
, or drop column
.
Examples
Reject a column in the ls
table
> ls | reject modified
Reject a column in a table
> [[a, b]; [1, 2]] | reject a
╭───┬───╮
│ # │ b │
├───┼───┤
│ 0 │ 2 │
╰───┴───╯
Reject the specified field in a record
> {a: 1, b: 2} | reject a
╭───┬───╮
│ b │ 2 │
╰───┴───╯
Reject a nested field in a record
> {a: {b: 3, c: 5}} | reject a.b
╭───┬───────────╮
│ │ ╭───┬───╮ │
│ a │ │ c │ 5 │ │
│ │ ╰───┴───╯ │
╰───┴───────────╯