From 3d704a40ea0b2a35cb4871c2b1dfa716b8d1dea6 Mon Sep 17 00:00:00 2001 From: joergsch Date: Sat, 7 Oct 2023 22:20:30 +0200 Subject: [PATCH] Update table.md (#1101) --- commands/docs/table.md | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/commands/docs/table.md b/commands/docs/table.md index 382bb42f342..fc279fdaf2c 100644 --- a/commands/docs/table.md +++ b/commands/docs/table.md @@ -60,26 +60,32 @@ Render data in table view Render data in table view (expanded) ```nu > [[a b]; [1 2] [2 [4 4]]] | table --expand -╭───┬───┬───╮ -│ # │ a │ b │ -├───┼───┼───┤ -│ 0 │ 1 │ 2 │ -│ 1 │ 3 │ 4 │ -╰───┴───┴───╯ +╭───┬───┬───────────╮ +│ # │ a │ b │ +├───┼───┼───────────┤ +│ 0 │ 1 │ 2 │ +│ 1 │ 2 │ ╭───┬───╮ │ +│ │ │ │ 0 │ 4 │ │ +│ │ │ │ 1 │ 4 │ │ +│ │ │ ╰───┴───╯ │ +╰───┴───┴───────────╯ ``` Render data in table view (collapsed) ```nu > [[a b]; [1 2] [2 [4 4]]] | table --collapse -╭───┬───┬───╮ -│ # │ a │ b │ -├───┼───┼───┤ -│ 0 │ 1 │ 2 │ -│ 1 │ 3 │ 4 │ -╰───┴───┴───╯ +╭───┬───╮ +│ a │ b │ +├───┼───┤ +│ 1 │ 2 │ +├───┼───┤ +│ 2 │ 4 │ +│ ├───┤ +│ │ 4 │ +╰───┴───╯ ``` ## Notes -If the table contains a column called 'index', this column is used as the table index instead of the usual continuous index. \ No newline at end of file +If the table contains a column called 'index', this column is used as the table index instead of the usual continuous index.