Prefix
Add a prefix to a column.
Parameters
| Name | Description | Accepted Values | Default | Required |
|---|---|---|---|---|
| I/O | ||||
input | Name of the input column. | string, integer, array | — | Yes |
output | (Optional) Name of the output column. | string, array, null | null | No |
| Options | ||||
value | Prefix value to add. | string, integer, number | — | Yes |
skip_empty | Whether to skip empty values. | boolean | false | No |
| Conditions | ||||
if | Condition that determines whether the wrangle runs as a whole. Recipe variables may be referenced with ${variable}. | string | — | No |
where | Filter rows before applying the wrangle using SQL-like criteria, such as column1 = 123 OR column2 = 'abc'. | string | — | No |
where_params | Values used with where for parameterized criteria. Uses SQLite placeholder syntax such as ? or :name. | array, object | — | No |
Examples
wrangles:
- format.prefix:
input: Data
output: Prefix
value: anti
| Data |
|---|
| freeze |
| dote |
| hero |
| Prefix |
|---|
| antifreeze |
| antidote |
| antihero |
Access
| Requirement | Value |
|---|---|
| AI-powered | No |
| Requires WrangleWorks account | No |
| Requires subscription | No |
| Requires external API key | No |
Technical details
| Field | Value |
|---|---|
| Catalog ID | 33 |
| Catalog key | format.prefix |
| Recipe key | format.prefix |
| Catalog status | active |
| Lifecycle status | active |
| Recipe Writer eligible | Yes |
| Namespace | format |
| Documentation group | format |
| Aliases | None |
| Runtime symbol | wrangles.recipe_wrangles.format.prefix |
| Legacy UUID | c12f99b9-2363-4da7-8405-7c73b87906e5 |
Sources