W3cubDocs

/Nushell

dfr arg-true for dataframe

Returns indexes where values are true.

Signature

> dfr arg-true {flags}

Input/output types:

input output
any any

Examples

Returns indexes where values are true

> [falsetruefalse] |dfr into-df|dfr arg-true
╭───┬──────────╮
# │ arg_true │
├───┼──────────┤
01
╰───┴──────────╯

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-true.html