transformations:keeptop
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
transformations:keeptop [2015/05/01 12:55] – elenap | transformations:keeptop [2021/05/04 17:46] – craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Trim Table ===== | + | {{ transformations: |
+ | ====== | ||
+ | Category: Transform / Filters\\ | ||
- | This transformation | + | \\ |
+ | =====Description===== | ||
+ | This action | ||
- | EXAMPLE | + | \\ |
+ | =====Use cases===== | ||
+ | Reduce the size of a larger dataset to a specific number of rows during the initial build of a workflow. | ||
- | **Table:** The longest rivers in the world in descending order (by length) | + | Remove extraneous metadata from the top or bottom of a dataset.\\ |
- | ^ River ^ Length (km) ^ Continent | ||
- | | Nile | 6650 | Africa | ||
- | | Amazon | ||
- | | Yangtze | ||
- | | Mississippi | ||
- | | Yenisei | ||
- | | Yellow River | 5464 | Asia | | ||
- | | Ob | 5410 | Asia | | ||
- | | Paraná | ||
+ | \\ | ||
+ | =====Action settings===== | ||
+ | ^Setting ^Description ^ | ||
+ | |Keep only/ | ||
+ | |Top/ | ||
+ | |N rows< | ||
+ | < | ||
- | **Objective: | + | \\ |
+ | =====Examples===== | ||
+ | **Objective: | ||
+ | \\ | ||
+ | **Table:** The longest rivers in the world (in descending order by length) | ||
+ | ^River | ||
+ | | Nile | 6650|Africa | ||
+ | | Amazon | ||
+ | | Yangtze | ||
+ | | Mississippi | ||
+ | | Yenisei | ||
+ | | Yellow River | 5464|Asia | ||
+ | | Ob | 5410|Asia | ||
+ | | Paraná | ||
+ | \\ | ||
+ | **Action parameters: | ||
+ | > Keep or Remove is " | ||
+ | > Top or Bottom is " | ||
+ | > Number of rows is " | ||
+ | \\ | ||
+ | **Result: | ||
+ | ^River | ||
+ | | Nile | 6650|Africa | ||
+ | | Amazon | ||
+ | | Yangtze | ||
- | **Transformation parameters: | + | \\ |
- | * Keep or Remove: Keep | + | =====See also===== |
- | * Top or bottom: Top | + | * [[transformations:keepremovematching|Keep/remove matching]] |
- | * Number of rows: 3 | + | |
- | + | ||
- | **Result:** | + | |
- | ^ River ^ Length (km) ^ Continent | ||
- | | Nile | 6650 | Africa | ||
- | | Amazon | ||
- | | Yangtze |