DATASET ADD COLUMN¶
Appends a new column to an existing dataset by supplying a column name and a comma-separated list of values (one per row). Use this worker whenever a workflow needs to inject a computed, constant, or externally derived column into a tabular dataset before downstream processing.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Dataset | dataset | dataset | — | Input tabular dataset to which the new column will be appended; must be a valid d3VIEW dataset object. | |
| Column Name | col_name | scalar | — | Name (header label) for the new column; must be a non-empty quoted string and should not duplicate an existing column name. | |
| Values | values | scalar | — | Comma-separated list of values to populate the new column, one entry per row; length must match the number of rows in the input dataset. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| Dataset | dataset | dataset | The input dataset with the new named column appended as the last column, preserving all original rows and columns. |
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_column
Auto-generated from transformation schema. Worker id: dataset_add_column. Schema hash: 8b98e9115bab. Hand-curated docs in workerexamples/ override this page when present.