DATASET SET CONSTANT VALUE BY COLUMN¶
Overwrites every row in one or more specified columns of a dataset with a single constant value. Use this worker when you need to blank out, zero-fill, or hard-code a column value before downstream processing.
When to use¶
Classification: process.
Tagged: column, constant, dataset, fill, overwrite, transform.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Dataset | dataset_1 | dataset | — | Input dataset whose column(s) will be modified; accepts any tabular dataset object available in the workflow. | |
| Column Name | column_name | scalar | — | One or more column names (quoted, comma-separated or multi-select) from dataset_1 whose entire contents will be replaced with the new constant value. | |
| New Value | col_value | scalar | — | The scalar constant value (numeric or string) to write into every row of the selected column(s); leave null to set cells to an empty/null value. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| dataset_set_constant_value_by_column_output_1 | dataset_set_constant_value_by_column_output_1 | dataset | A copy of the input dataset with all rows in the specified column(s) replaced by the supplied constant value; schema and all other columns are unchanged. |
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_set_constant_value_by_column
Auto-generated from transformation schema. Worker id: dataset_set_constant_value_by_column. Schema hash: 0f53308f5966. Hand-curated docs in workerexamples/ override this page when present.