transformations:labelcolumns
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
transformations:labelcolumns [2015/10/01 22:37] – dmitry | transformations:labelcolumns [2021/07/19 02:24] (current) – [Examples] craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Label columns | + | {{ transformations: |
+ | ====== | ||
+ | Category: Transform / Advanced \\ | ||
- | This transformation | + | \\ |
+ | =====Description===== | ||
+ | This action | ||
- | **Example** | + | \\ |
+ | =====Use cases===== | ||
+ | This action can be used for parsing data in spreadsheets with multi-line column headers. | ||
- | Before transformation | + | |
+ | \\ | ||
+ | =====Action settings===== | ||
+ | ^Setting^Description^ | ||
+ | |Use top (# of rows)|Enter or select the number of top rows to use for creating column names.| | ||
+ | |Separator|Select the character to be used to separate the values pulled from the top rows when more than one row is selected.\\ | ||
+ | |Rename|Select whether to rename all columns, or selected columns. | ||
+ | |||
+ | \\ | ||
+ | =====Remarks===== | ||
+ | When selecting more than one top row, values in those rows will be concatenated using the separator character chosen. | ||
+ | |||
+ | When not selecting all columns to be renamed, any values in the columns //not selected// will be lost from the rows used for column names.\\ | ||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | |||
+ | **Example: | ||
+ | |||
+ | **Source dataset:** | ||
^Column1 | ^Column1 | ||
|State | |State | ||
Line 13: | Line 38: | ||
|British Columbia | |British Columbia | ||
|Quebec | |Quebec | ||
+ | \\ | ||
+ | **Action parameters: | ||
+ | > Use top " | ||
+ | > Separator is " | ||
+ | > All columns are renamed | ||
- | After applying the transformation for top 3 rows: | + | \\ |
+ | **Result table:** | ||
^State or province | ^State or province | ||
|Ontario | |Ontario | ||
Line 21: | Line 51: | ||
|Quebec | |Quebec | ||
- | Not that in EasyMorph you can import | + | \\ |
+ | ====Community examples==== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | \\ | ||
+ | =====See also===== | ||
+ | *[[transformations: | ||
+ | *[[transformations: |
transformations/labelcolumns.1443753448.txt.gz · Last modified: 2015/10/01 22:37 by dmitry