W3cubDocs

/Nushell

dfr filter for lazyframe

Filter dataframe based in expression.

Signature

> dfr filter {flags} (filter expression)

Parameters

  • filter expression: Expression that define the column selection

Input/output types:

input output
any any

Examples

Filter dataframe using an expression

> [[ab]; [62] [42] [22]] |dfr into-df|dfr filter ((dfr cola) >=4)
╭───┬───┬───╮
# │ a │ b │
├───┼───┼───┤
062
142
╰───┴───┴───╯

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

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/dfr_filter.html