dfr is-in for expression

Creates an is-in expression.

WARNING

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

Signature

> dfr is-in {flags} (list)

Parameters

  • list: List to check if values are in

Input/output types:

inputoutput
anyany

Examples

Creates a is-in expression

> let df = ([[a b]; [one 1] [two 2] [three 3]] | dfr into-df);
    $df | dfr with-column (dfr col a | dfr is-in [one two] | dfr as a_in)
╭───┬───────┬───┬───────╮
 # │   a   │ b │ a_in  │
├───┼───────┼───┼───────┤
 0 one 1 true
 1 two 2 true
 2 three 3 false
╰───┴───────┴───┴───────╯