dfr arg-where
for expression
Creates an expression that returns the arguments where expression is true.
Signature
> dfr arg-where {flags} (column name)
Parameters
column name
: Expression to evaluate
Input/output types:
input | output |
---|---|
any | any |
Examples
Return a dataframe where the value match the expression
> let df = ([[a b]; [one 1] [two 2] [three 3]] | dfr into-df);
$df | dfr select (dfr arg-where ((dfr col b) >= 2) | dfr as b_arg)
╭───┬───────╮
│ # │ b_arg │
├───┼───────┤
│ 0 │ 1 │
│ 1 │ 2 │
╰───┴───────╯
Tips: Dataframe commands were not shipped in the official binaries by default, you have to build it with --features=dataframe
flag