W3cubDocs

/Nushell

dfr concat-str for expression

Creates a concat string expression.

Signature

> dfr concat-str {flags} (separator) (concat expressions)

Parameters

  • separator: Separator used during the concatenation
  • concat expressions: Expression(s) that define the string concatenation

Input/output types:

input output
any any

Examples

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    │
├───┼───────┼──────┼───┼──────────────┤
0onetwo1one-two-2
1threefour2three-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