DATASET GET ROW NEAR ORIGIN¶
Finds the row in a dataset whose value in a specified column is closest to the origin (zero) and returns a slice of neighboring rows around it. Use it to isolate the zero-crossing region of a curve or to extract context rows around the minimum-absolute-value point in any numeric column.
When to use¶
Classification: process.
Tagged: dataset, nearest, origin, row_selection, slice, transformations, zero_crossing.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Dataset | dataset | dataset | — | Input dataset (tabular) to search; must contain at least one numeric column — the row nearest to zero in the chosen column will be located. | |
| Column Name | column_name | scalar | — | Name of the numeric column used to find the row closest to zero (origin); must match an existing column header exactly. | |
| Num Rows | num_rows | scalar | 1 | Number of rows to return around the origin row: positive values extend the slice to the right/after the origin row, negative values extend to the left/before it; defaults to 1 (return only the origin row itself). |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| dataset_get_row_near_origin_output_1 | dataset_get_row_near_origin_output_1 | dataset | Subset dataset containing the row(s) nearest to the origin in the specified column, with the same columns as the input dataset. |
Disciplines¶
- data.dataset.transform
Runnable example¶
A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=dataset_get_row_near_origin
Auto-generated from transformation schema. Worker id: dataset_get_row_near_origin. Schema hash: 59e8d618eaf5. Hand-curated docs in workerexamples/ override this page when present.