Skip to main content

Replace

Quick find and replace for simple values. Can use regex if 'input' in params and isinstance(params['input'], list):in the find field.

Quick find and replace for simple values. Can use regex in the find field.

note

Values that are not a number or a string pass through unaltered.

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName or list of input column.string, integer, array—Yes
outputName or list of output column.string, array, nullnullNo
Options
findPattern to find using regex.string—Yes
replaceValue to replace the pattern found.string—Yes
Conditions
ifCondition that determines whether the wrangle runs as a whole. Recipe variables may be referenced with ${variable}.string—No
whereFilter rows before applying the wrangle using SQL-like criteria, such as column1 = 123 OR column2 = 'abc'.string—No
where_paramsValues used with where for parameterized criteria. Uses SQLite placeholder syntax such as ? or :name.array, object—No

Examples​

wrangles:
- replace:
input: Product Data
find: brg
replace: bearing
Product Data
SKF ball brg
brg seal
Product Data
SKF ball bearing
bearing seal
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID90
Catalog keyreplace
Recipe keyreplace
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
NamespaceRoot-level
Documentation groupformat
AliasesNone
Runtime symbolwrangles.recipe_wrangles.main.replace
Legacy UUIDf0ab715e-9e0e-4614-83e4-5cd8ea08a09f

Sources