Apply suggestions from Thad's review

Co-Authored-By: Thad Guidry <thadguidry@gmail.com>
This commit is contained in:
Antonin Delpeuch 2020-04-09 15:25:19 +02:00 committed by GitHub
parent 86bf6be194
commit 20bc0462d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ title: Columnize by key/value columns
sidebar_label: Columnize by key/value sidebar_label: Columnize by key/value
--- ---
This operation can be used to reshape a table which contains *key* and *value* columns, such that the contents of the key column become new column names, and the contents of the value column are spread in the new columns. This operation can be invoked from This operation can be used to reshape a table which contains *key* and *value* columns, such that the repeating contents in the key column become new column names, and the contents of the value column are spread in the new columns. This operation can be invoked from
any column menu, via **Transpose****Columnize by key/value columns**. any column menu, via **Transpose****Columnize by key/value columns**.
Overview Overview
@ -56,7 +56,7 @@ This table is transformed by the operation as follows:
| | Green | | | | Green | |
| Narcissus cyclamineus | Yellow | 161899 | | Narcissus cyclamineus | Yellow | 161899 |
The first key encountered by the operation serves as record key. The first key encountered by the operation serves as the record key.
The "Green" value is attached to the "Galanthus nivalis" name because it is the latest record key encountered by the operation as it scans the table. See the [Row order](#row-order) section for more details about the influence of row order on The "Green" value is attached to the "Galanthus nivalis" name because it is the latest record key encountered by the operation as it scans the table. See the [Row order](#row-order) section for more details about the influence of row order on
the results of the operation. the results of the operation.
@ -118,7 +118,7 @@ Row order
--------- ---------
In the absence of extra columns, it is important to note that the order in which In the absence of extra columns, it is important to note that the order in which
the key/value pairs appear matters. Specifically, the operation will use the first key it encounters as delimiter for entries: the key/value pairs appear matters. Specifically, the operation will use the first key it encounters as the delimiter for entries:
every time it encounters this key again, it will produce a new row and add the following other key/value pairs to that row. every time it encounters this key again, it will produce a new row and add the following other key/value pairs to that row.
Consider for instance the following table: Consider for instance the following table: