Skip to main content

Threshold

Select the first option if it exceeds a given threshold, else the second option.

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputList of the input columns to select from.array—Yes
outputName of the output column.string—Yes
Options
thresholdThreshold above which to choose the first option, otherwise the second.number—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:
- select.threshold:
input:
- Col1
- Col2
output: Result
threshold: .77
Col1Col2
['A', 0.6]['B', 0.79]
Result
B
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID62
Catalog keyselect.threshold
Recipe keyselect.threshold
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceselect
Documentation groupselect
AliasesNone
Runtime symbolwrangles.recipe_wrangles.select.threshold
Legacy UUIDaf2a5dcc-0ec0-48d7-8fb4-f58d9c5391d2

Sources