To YAML
Convert an object to a YAML representation.
Parameters
| Name | Description | Accepted Values | Default | Required |
|---|---|---|---|---|
| I/O | ||||
input | Name of the input column. | string, integer, array | — | Yes |
output | Name of the output column. If omitted, the input column will be overwritten. | string, array, null | null | No |
| Formatting | ||||
sort_keys | If sort_keys is true (default: False), then the output of dictionaries will be sorted by key. | boolean | false | No |
allow_unicode | Allow Unicode value accepted by the runtime. | boolean | true | No |
indent | Specify the number of spaces for indentation to specify nested elements. | integer | — | 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:
- convert.to_yaml:
input: column 1
indent: 2
{
'Product Specs': {
'length': '6 inch',
'voltage': '24V',
'weight': '3lb'
}
}
Product Specs:
length: 6 inch
voltage: 24V
weight: 3lb
Access
| Requirement | Value |
|---|---|
| AI-powered | No |
| Requires WrangleWorks account | No |
| Requires subscription | No |
| Requires external API key | No |
Technical details
| Field | Value |
|---|---|
| Catalog ID | 11 |
| Catalog key | convert.to_yaml |
| Recipe key | convert.to_yaml |
| Catalog status | active |
| Lifecycle status | active |
| Recipe Writer eligible | Yes |
| Namespace | convert |
| Documentation group | convert |
| Aliases | None |
| Runtime symbol | wrangles.recipe_wrangles.convert.to_yaml |
| Legacy UUID | 4cd6252f-ce47-4a9d-8272-3d87e875b72a |
Sources