DATASET ADD COUNTER¶
Appends a sequential counter column to a dataset, starting at a configurable value and stepping by a configurable increment. Use this worker to add row-index or enumeration columns to any tabular dataset before downstream processing.
When to use¶
Classification: process.
Tagged: add_column, counter, dataset, enumeration, row_index, transform.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Choose Dataset | dataset_1 | dataset | — | Input tabular dataset to which the counter column will be appended; accepts any dataset type available in the platform. | |
| Choose Column | col_name | scalar | — | Name of the existing column used to anchor or label the counter; leave blank to simply append the counter as a new column without reference to an existing one. | |
| Start Number | start_number | text | 1 | Integer (or float) value at which the counter begins; defaults to 1, e.g. set to 0 for zero-based indexing. | |
| Increment | increment | text | 1 | Step size added between successive counter values; defaults to 1 for a simple sequential counter, set to a larger value for sparse enumeration. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| Dataset with Scaled Column | dataset_scale_column_output_1 | dataset | Output dataset identical to the input but with an additional counter column appended, populated from start_number and incremented by the specified step for every row. |
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_add_counter
Auto-generated from transformation schema. Worker id: dataset_add_counter. Schema hash: 01619e1db9c0. Hand-curated docs in workerexamples/ override this page when present.