transformations:keeptop
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
transformations:keeptop [2014/10/25 17:19] – created dmitry | transformations:keeptop [2021/05/04 17:46] – craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Keep Top Rows ===== | + | {{ transformations: |
+ | ====== | ||
+ | Category: Transform / Filters\\ | ||
- | This transformation leaves only first N rows and removes all other rows. | + | \\ |
+ | =====Description===== | ||
+ | This action keeps or removes the first or last N rows.\\ | ||
- | If you need to remove | + | \\ |
+ | =====Use cases===== | ||
+ | Reduce the size of a larger dataset | ||
+ | |||
+ | Remove extraneous metadata from the top or bottom | ||
+ | |||
+ | |||
+ | \\ | ||
+ | =====Action settings===== | ||
+ | ^Setting ^Description ^ | ||
+ | |Keep only/ | ||
+ | |Top/ | ||
+ | |N rows< | ||
+ | < | ||
+ | |||
+ | \\ | ||
+ | =====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 | ||
+ | |||
+ | \\ | ||
+ | =====See also===== | ||
+ | * [[transformations: | ||