dfr filter
for lazyframe
Filter dataframe based in expression.
Signature
> dfr filter (filter expression)
Parameters
filter expression
: Expression that define the column selection
Input/output types:
input | output |
---|---|
any | any |
Examples
Filter dataframe using an expression
> [[a b]; [6 2] [4 2] [2 2]] | dfr into-df | dfr filter ((dfr col a) >= 4)
╭───┬───┬───╮
│ # │ a │ b │
├───┼───┼───┤
│ 0 │ 6 │ 2 │
│ 1 │ 4 │ 2 │
╰───┴───┴───╯
Tips: Dataframe commands were not shipped in the official binaries by default, you have to build it with --features=dataframe
flag