polars concat-str для выражения
Создаёт выражение для конкатенации строк.
Сигнатура
> polars concat-str {flags} (separator) (concat expressions)
Параметры
-
separator: Разделитель, используемый при конкатенации. -
concat expressions: Выражение или выражения, определяющие конкатенацию строк.
Типы входных и выходных данных:
| вход | выход |
|---|---|
| any | polars_expression |
Примеры
Создаёт выражение для конкатенации строк
> let df = ([[a b c]; [one two 1] [three four 2]] | polars into-df);
$df | polars with-column ((polars concat-str "-" [(polars col a) (polars col b) ((polars col c) * 2)]) | polars as concat)
╭───┬───────┬──────┬───┬──────────────╮
│ # │ a │ b │ c │ concat │
├───┼───────┼──────┼───┼──────────────┤
│ 0 │ one │ two │ 1 │ one-two-2 │
│ 1 │ three │ four │ 2 │ three-four-4 │
╰───┴───────┴──────┴───┴──────────────╯
Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/polars_concat-str.html