dfr concat-str
for expression> dfr concat-str {flags} (separator) (concat expressions)
separator
: Separator used during the concatenationconcat expressions
: Expression(s) that define the string concatenationinput | output |
---|---|
any | any |
Creates a concat string expression
>letdf= ([[abc]; [onetwo1] [threefour2]] |dfr into-df);
$df|dfr with-column ((dfr concat-str"-" [(dfr cola) (dfr colb) ((dfr colc) *2)]) |dfr asconcat)
╭───┬───────┬──────┬───┬──────────────╮
│# │ a │ b │ c │ concat │
├───┼───────┼──────┼───┼──────────────┤
│0│one│two│1│one-two-2│
│1│three│four│2│three-four-4│
╰───┴───────┴──────┴───┴──────────────╯
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_concat-str.html