Merge wrangles, with recipe examples, parameters, and behavior.
Coalesce | merge.coalesce
Take the first non-empty value from a series of columns or lists.
Take the first non-empty value from a series of columns.
Parameters
Name Description Accepted Values Default Required I/O inputList of input columns or a single column containing lists. array — Yes outputName of the output columns. This is required if multiple input columns are provided. string, null nullNo 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 : - merge.coalesce : input : - Col1 - Col2 - Col3 output : Output Col where : Col2 = 'E'
Access Requirement Value AI-powered No Requires WrangleWorks account No Requires subscription No Requires external API key No
Technical details Field Value Catalog ID 40Catalog key merge.coalesceRecipe key merge.coalesceCatalog status active Lifecycle status active Recipe Writer eligible Yes Namespace mergeDocumentation group mergeAliases None Runtime symbol wrangles.recipe_wrangles.merge.coalesceLegacy UUID 25c1a60d-fa48-4b9a-8c03-0921d5b31049
Sources
Concatenate | merge.concatenate
Concatenate a list of columns or a list within a single column.
If the input is a list of columns, concatenate multiple columns into one as a delimited string. If the input is a single column, concatenate a list within that column into a delimited string.
Parameters
Name Description Accepted Values Default Required I/O inputEither a single column name or list of columns. string, integer, array — Yes outputName of the output column. string — Yes Options skip_emptyWhether to skip empty values, defaults to false. boolean falseNo Formatting char(Optional) Character to add between successive values. string ","No 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 : - merge.concatenate : input : - Col1 - Col2 - Col3 output : Join Col char : ', '
wrangles : - merge.concatenate : input : Col1 output : Join List char : ' '
Access Requirement Value AI-powered No Requires WrangleWorks account No Requires subscription No Requires external API key No
Technical details Field Value Catalog ID 41Catalog key merge.concatenateRecipe key merge.concatenateCatalog status active Lifecycle status active Recipe Writer eligible Yes Namespace mergeDocumentation group mergeAliases None Runtime symbol wrangles.recipe_wrangles.merge.concatenateLegacy UUID 6ff76728-e1f6-4d3d-8946-6aa3b7524b3f
Sources
Dictionaries | merge.dictionaries
Take dictionaries in multiple columns and merge them to a single dictionary.
For duplicate keys, the last key in the input list takes precedence in the merged dictionary.
Parameters
Name Description Accepted Values Default Required I/O inputList of input columns. array — Yes outputName of the output column. string — Yes Options skip_emptyWhether to skip empty dictionaries when merging. boolean falseNo 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 : - merge.dictionaries : input : - Dict 1 - Dict 2 output : Merged
Merged {'First': 'One', 'Second': 'Two'}
wrangles : - merge.dictionaries : input : Dict * output : Merged
Merged {'First': 'One', 'Second': 'Two'}
wrangles : - merge.dictionaries : input : - Dict * - - Dict 2 output : Merged
Note the extra dash in front of Dict 2 excludes that column from the wildcard selection.
Dict 1 Dict 2 Dict 3 {'First': 'One'} {'Second': 'Two'} {'Third': 'Three'}
Merged {'First': 'One', 'Third': 'Three'}
Access Requirement Value AI-powered No Requires WrangleWorks account No Requires subscription No Requires external API key No
Technical details Field Value Catalog ID 42Catalog key merge.dictionariesRecipe key merge.dictionariesCatalog status active Lifecycle status active Recipe Writer eligible Yes Namespace mergeDocumentation group mergeAliases None Runtime symbol wrangles.recipe_wrangles.merge.dictionariesLegacy UUID 93e27737-e966-4ba9-8777-4e96724ebfc4
Sources
Key Value Pairs | merge.key_value_pairs
Create a dictionary from keys and values in paired columns e.g. COLUMN_NAME_1, COLUMN_VALUE_1, COLUMN_NAME_2, COLUMN_VALUE_2 ...
Create a dictionary from keys and values in paired columns.
Parameters
Name Description Accepted Values Default Required I/O inputMatched pairs of key and value columns. object — Yes outputName of the output column. string — Yes Options skip_emptyWhether to skip empty keys or values when creating the dictionary. boolean falseNo 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 : - merge.key_value_pairs : input : Letter : Number output : Pairs
Pairs {'A': 1} {'B': 2} {'C': 3}
wrangles : - merge.key_value_pairs : input : key* : value* output : Object
Object {'A': 'a', 'One': 'First'} {'B': 'b', 'Two': 'Second'} {'C': 'c', 'three': 'Third'}
Access Requirement Value AI-powered No Requires WrangleWorks account No Requires subscription No Requires external API key No
Technical details Field Value Catalog ID 43Catalog key merge.key_value_pairsRecipe key merge.key_value_pairsCatalog status active Lifecycle status active Recipe Writer eligible Yes Namespace mergeDocumentation group mergeAliases None Runtime symbol wrangles.recipe_wrangles.merge.key_value_pairsLegacy UUID 8a2cd37c-8ef7-4b05-8264-36512f5dd837
Sources
Lists | merge.lists
Take lists in multiple columns and merge them to a single list.
Parameters
Name Description Accepted Values Default Required I/O inputList of input columns. array — Yes outputName of the output column. string — Yes Options remove_duplicatesWhether to remove duplicates from the created list. boolean falseNo ignore_caseIgnore case when removing duplicates. boolean falseNo include_emptyWhether to include empty values in the created list. boolean trueNo 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 : - merge.lists : input : - Col1 - Col2 output : Combined Col remove_duplicates : false
Combined Col ['A', 'B', 'D', 'E']
Access Requirement Value AI-powered No Requires WrangleWorks account No Requires subscription No Requires external API key No
Technical details Field Value Catalog ID 44Catalog key merge.listsRecipe key merge.listsCatalog status active Lifecycle status active Recipe Writer eligible Yes Namespace mergeDocumentation group mergeAliases None Runtime symbol wrangles.recipe_wrangles.merge.listsLegacy UUID d9978f00-b3d4-4583-884e-a53b98a43e9a
Sources
To Dict | merge.to_dict
Take multiple columns and merge them to a dictionary (aka object) using the column headers as keys.
Parameters
Name Description Accepted Values Default Required I/O inputList of input columns. array — Yes outputName of the output column. string — Yes Options include_emptyWhether to include empty columns in the created dictionary. boolean falseNo 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 : - merge.to_dict : input : - Col1 - Col2 output : Dict Col
Dict Col {'Col1': 'A', 'Col2': 'B'}
Access Requirement Value AI-powered No Requires WrangleWorks account No Requires subscription No Requires external API key No
Technical details Field Value Catalog ID 45Catalog key merge.to_dictRecipe key merge.to_dictCatalog status active Lifecycle status active Recipe Writer eligible Yes Namespace mergeDocumentation group mergeAliases None Runtime symbol wrangles.recipe_wrangles.merge.to_dictLegacy UUID 9b869210-0d89-403b-8409-7cecdb5f9c7c
Sources
To List | merge.to_list
Take multiple columns and merge them to a list.
Parameters
Name Description Accepted Values Default Required I/O inputList of input columns. array — Yes outputName of the output column. string — Yes Options include_emptyWhether to include empty columns in the created list. boolean falseNo 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 : - merge.to_list : input : - Col1 - Col2 - Col3 output : List Col
Access Requirement Value AI-powered No Requires WrangleWorks account No Requires subscription No Requires external API key No
Technical details Field Value Catalog ID 46Catalog key merge.to_listRecipe key merge.to_listCatalog status active Lifecycle status active Recipe Writer eligible Yes Namespace mergeDocumentation group mergeAliases None Runtime symbol wrangles.recipe_wrangles.merge.to_listLegacy UUID d5300fe7-c8a4-4a41-8f12-f2c1698678cc
Sources