From 285e2bb16b0421a2b41989e57547931923a6d180 Mon Sep 17 00:00:00 2001 From: qodelicious <162776175+qodelicious@users.noreply.github.com> Date: Wed, 21 Oct 2026 00:09:07 +0000 Subject: [PATCH] Use 0-based split column names in translated books split column names its columns from column0 now and the English pages already show that. This updates the same examples in the de, es, ko, pt-BR and zh-CN books. --- de/book/loading_data.md | 6 +++--- es/book/cargando_datos.md | 6 +++--- ko/book/loading_data.md | 6 +++--- ko/book/working_with_strings.md | 2 +- pt-BR/book/carregando_dados.md | 6 +++--- zh-CN/book/loading_data.md | 6 +++--- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/de/book/loading_data.md b/de/book/loading_data.md index ebcf25bf911..c4b0fd8a803 100644 --- a/de/book/loading_data.md +++ b/de/book/loading_data.md @@ -95,7 +95,7 @@ Als Parameter reicht das Trennzeichen, der Rest ist automatisch: ```nu open people.txt | lines | split column "|" # => ───┬──────────┬───────────┬─────────── -# => # │ column1 │ column2 │ column3 +# => # │ column0 │ column1 │ column2 # => ───┼──────────┼───────────┼─────────── # => 0 │ Octavia │ Butler │ Writer # => 1 │ Bob │ Ross │ Painter @@ -109,7 +109,7 @@ Mit dem [`trim`](/commands/docs/str_trim.md) Befehl wird dieser beseitigt: ```nu open people.txt | lines | split column "|" | str trim # => ───┬─────────┬─────────┬────────── -# => # │ column1 │ column2 │ column3 +# => # │ column0 │ column1 │ column2 # => ───┼─────────┼─────────┼────────── # => 0 │ Octavia │ Butler │ Writer # => 1 │ Bob │ Ross │ Painter @@ -121,7 +121,7 @@ Nicht schlecht. Der [`split`](/commands/docs/split.md) Befehl gibt nicht nur bra sondern bezeichnet auch noch standardmässig die Spaltennamen: ```nu -open people.txt | lines | split column "|" | str trim | get column1 +open people.txt | lines | split column "|" | str trim | get column0 # => ───┬───────── # => 0 │ Octavia # => 1 │ Bob diff --git a/es/book/cargando_datos.md b/es/book/cargando_datos.md index b9c9e386749..0d886690308 100644 --- a/es/book/cargando_datos.md +++ b/es/book/cargando_datos.md @@ -80,7 +80,7 @@ Podemos darnos cuenta que estamos trabajando con las líneas porque estamos de v ```nu open gente.txt | lines | split column "|" # => ---+----------+-----------+----------- -# => # | Column1 | Column2 | Column3 +# => # | column0 | column1 | column2 # => ---+----------+-----------+----------- # => 0 | Octavia | Butler | Writer # => 1 | Bob | Ross | Painter @@ -93,7 +93,7 @@ Casi se ve correcto. Parece que hay espacio extra ahí. Cambiemos nuestro delimi ```nu open gente.txt | lines | split column " | " # => ---+---------+---------+---------- -# => # | Column1 | Column2 | Column3 +# => # | column0 | column1 | column2 # => ---+---------+---------+---------- # => 0 | Octavia | Butler | Writer # => 1 | Bob | Ross | Painter @@ -104,7 +104,7 @@ open gente.txt | lines | split column " | " Nada mal. El comando `split` nos da datos que podemos usar. Adicionalmente nos crea nombres de columnas predeterminadas: ```nu -open gente.txt | lines | split column " | " | get Column1 +open gente.txt | lines | split column " | " | get column0 # => ---+--------- # => # | value # => ---+--------- diff --git a/ko/book/loading_data.md b/ko/book/loading_data.md index 4e95712c03d..1c26760cd80 100644 --- a/ko/book/loading_data.md +++ b/ko/book/loading_data.md @@ -122,7 +122,7 @@ open people.txt | lines ```nu open people.txt | lines | split column "|" # => ───┬──────────┬───────────┬─────────── -# => # │ column1 │ column2 │ column3 +# => # │ column0 │ column1 │ column2 # => ───┼──────────┼───────────┼─────────── # => 0 │ Octavia │ Butler │ Writer # => 1 │ Bob │ Ross │ Painter @@ -135,7 +135,7 @@ open people.txt | lines | split column "|" ```nu open people.txt | lines | split column "|" | str trim # => ───┬─────────┬─────────┬────────── -# => # │ column1 │ column2 │ column3 +# => # │ column0 │ column1 │ column2 # => ───┼─────────┼─────────┼────────── # => 0 │ Octavia │ Butler │ Writer # => 1 │ Bob │ Ross │ Painter @@ -146,7 +146,7 @@ open people.txt | lines | split column "|" | str trim 나쁘지 않습니다. [`split`](/commands/docs/split.md) 명령은 사용할 수 있는 데이터를 제공합니다. 또한 기본 열 이름을 제공합니다. ```nu -open people.txt | lines | split column "|" | str trim | get column1 +open people.txt | lines | split column "|" | str trim | get column0 # => ───┬───────── # => 0 │ Octavia # => 1 │ Bob diff --git a/ko/book/working_with_strings.md b/ko/book/working_with_strings.md index eb6fbb2b913..b5dd8ff1ea9 100644 --- a/ko/book/working_with_strings.md +++ b/ko/book/working_with_strings.md @@ -248,7 +248,7 @@ const x = $"(2kb)" ```nu "red,green,blue" | split column "," # => ╭───┬─────────┬─────────┬─────────╮ -# => │ # │ column1 │ column2 │ column3 │ +# => │ # │ column0 │ column1 │ column2 │ # => ├───┼─────────┼─────────┼─────────┤ # => │ 0 │ red │ green │ blue │ # => ╰───┴─────────┴─────────┴─────────╯ diff --git a/pt-BR/book/carregando_dados.md b/pt-BR/book/carregando_dados.md index 6ee33802f25..8be8cd1912c 100644 --- a/pt-BR/book/carregando_dados.md +++ b/pt-BR/book/carregando_dados.md @@ -80,7 +80,7 @@ Podemos notar que estamos lidando com linhas porque voltamos a ver uma lista. No ```nu open people.txt | lines | split column "|" # => ---+----------+-----------+----------- -# => # | Column1 | Column2 | Column3 +# => # | column0 | column1 | column2 # => ---+----------+-----------+----------- # => 0 | Octavia | Butler | Writer # => 1 | Bob | Ross | Painter @@ -93,7 +93,7 @@ Está quase certo. Parece que tem um espaço extra ali. Vamos mudar nosso delimi ```nu open people.txt | lines | split column " | " # => ---+---------+---------+---------- -# => # | Column1 | Column2 | Column3 +# => # | column0 | column1 | column2 # => ---+---------+---------+---------- # => 0 | Octavia | Butler | Writer # => 1 | Bob | Ross | Painter @@ -104,7 +104,7 @@ open people.txt | lines | split column " | " Nada mal. O comando `split column` retorna dados que podemos usar. Ele também vai além e nos dá nomes de coluna padrão: ```nu -open people.txt | lines | split column " | " | get Column1 +open people.txt | lines | split column " | " | get column0 # => ---+--------- # => # | value # => ---+--------- diff --git a/zh-CN/book/loading_data.md b/zh-CN/book/loading_data.md index 127d57d8d2b..d78e5dbcc44 100644 --- a/zh-CN/book/loading_data.md +++ b/zh-CN/book/loading_data.md @@ -122,7 +122,7 @@ open people.txt | lines ```nu open people.txt | lines | split column "|" # => ───┬──────────┬───────────┬─────────── -# => # │ column1 │ column2 │ column3 +# => # │ column0 │ column1 │ column2 # => ───┼──────────┼───────────┼─────────── # => 0 │ Octavia │ Butler │ Writer # => 1 │ Bob │ Ross │ Painter @@ -135,7 +135,7 @@ open people.txt | lines | split column "|" ```nu open people.txt | lines | split column "|" | str trim # => ───┬─────────┬─────────┬────────── -# => # │ column1 │ column2 │ column3 +# => # │ column0 │ column1 │ column2 # => ───┼─────────┼─────────┼────────── # => 0 │ Octavia │ Butler │ Writer # => 1 │ Bob │ Ross │ Painter @@ -146,7 +146,7 @@ open people.txt | lines | split column "|" | str trim 还不错,[`split`](/commands/docs/split.md)命令返回给我们可以使用的数据,还预设了默认的列名: ```nu -open people.txt | lines | split column "|" | str trim | get column1 +open people.txt | lines | split column "|" | str trim | get column0 # => ───┬───────── # => 0 │ Octavia # => 1 │ Bob