transformations:keeptop
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
transformations:keeptop [2015/05/01 08:55] – dmitry | transformations:keeptop [2021/05/04 17:46] – craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Keep Top Rows ===== | + | {{ transformations: |
+ | ====== | ||
+ | Category: Transform / Filters\\ | ||
- | This transformation | + | \\ |
+ | =====Description===== | ||
+ | This action | ||
- | If you need to remove bottom | + | \\ |
+ | =====Use cases===== | ||
+ | Reduce the size of a larger dataset | ||
- | EXAMPLE | + | Remove extraneous metadata from the top or bottom of a dataset.\\ |
- | **Source table:** The longest rivers in the world in descending order (by length) | ||
- | ^ | + | \\ |
- | | Nile | + | =====Action settings===== |
- | | Amazon | + | ^Setting |
- | | Yangtze | + | |Keep only/Remove|Select whether N number of rows will be kept or removed.| |
- | | Mississippi | + | |Top/Bottom|Select whether the rows at the top or bottom of the table will be kept/ |
- | | Yenisei | + | |N rows< |
- | | Yellow River | 5464 | Asia | | + | < |
- | | Ob | 5410 | Asia | | + | |
- | | Paraná | + | |
+ | \\ | ||
+ | =====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 | ||
- | **Objective:** Keep the top three longest rivers | + | \\ |
+ | =====See also===== | ||
+ | | ||
- | **Transformation parameters: | ||
- | * Number of rows: 3 | ||
- | |||
- | **Output table:** | ||
- | |||
- | ^ River ^ Length (km) ^ Continent | ||
- | | Nile | 6650 | Africa | ||
- | | Amazon | ||
- | | Yangtze |