Skip to main content

From YAML

Convert a YAML representation into an object.

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName of the input column.string, integer, array—Yes
outputName of the output column. If omitted, the input column will be overwritten.string, array, nullnullNo
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
Errors
defaultValue to return if the row is empty or fails to be parsed as YAML. If input is a list, default may also be a list - either a single value to apply to all columns, or one value per input column.string, array, object, number, boolean, nullnullNo

Examples​

wrangles:
- convert.from_yaml:
input: column 1
Product Specs:
length: 6 inch
voltage: 24V
weight: 3lb
{
'Product Specs': {
'length': '6 inch',
'voltage': '24V',
'weight': '3lb'
}
}
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID9
Catalog keyconvert.from_yaml
Recipe keyconvert.from_yaml
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceconvert
Documentation groupconvert
AliasesNone
Runtime symbolwrangles.recipe_wrangles.convert.from_yaml
Legacy UUIDb1c20004-5f80-41c2-84d2-2d4601a033b5

Sources