W3cubDocs

/Nushell

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

>letdf= ([[ab]; [one1] [two2] [three3]] |dfr into-df);
$df|dfr select (dfr arg-where ((dfr colb) >=2) |dfr asb_arg)
╭───┬───────╮
# │ b_arg │
├───┼───────┤
01
12
╰───┴───────╯

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_arg-where.html