To List
Take multiple columns and merge them to a list.
Parameters
| Name | Description | Accepted Values | Default | Required |
|---|---|---|---|---|
| I/O | ||||
input | List of input columns. | array | — | Yes |
output | Name of the output column. | string | — | Yes |
| Options | ||||
include_empty | Whether to include empty columns in the created list. | 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:
- merge.to_list:
input:
- Col1
- Col2
- Col3
output: List Col
| Col1 | Col2 | Col3 |
|---|---|---|
| A | B | C |
| List Col |
|---|
| ['A', 'B', 'C'] |
Access
| Requirement | Value |
|---|---|
| AI-powered | No |
| Requires WrangleWorks account | No |
| Requires subscription | No |
| Requires external API key | No |
Technical details
| Field | Value |
|---|---|
| Catalog ID | 46 |
| Catalog key | merge.to_list |
| Recipe key | merge.to_list |
| Catalog status | active |
| Lifecycle status | active |
| Recipe Writer eligible | Yes |
| Namespace | merge |
| Documentation group | merge |
| Aliases | None |
| Runtime symbol | wrangles.recipe_wrangles.merge.to_list |
| Legacy UUID | d5300fe7-c8a4-4a41-8f12-f2c1698678cc |
Sources