Format wrangles, with recipe examples, parameters, and behavior.
Clean Whitespaces | clean_whitespaces
Condense multiple spaces to a single space and convert special space characters to a standard space.
Parameters
Name Description Accepted Values Default Required I/O inputName or list of input columns. string, integer, array — Yes outputName or list of output columns. string, array, null nullNo Options trimWhether to trim leading and trailing spaces. Default True. boolean trueNo remove_literalsWhether to remove special space characters such as new lines etc. Default True. 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 : - clean_whitespaces : input : Products
Products Hello world! Hello universe!
Access Requirement Value AI-powered No Requires WrangleWorks account No Requires subscription No Requires external API key No
Technical details Field Value Catalog ID 72Catalog key clean_whitespacesRecipe key clean_whitespacesCatalog status active Lifecycle status active Recipe Writer eligible Yes Namespace Root-level Documentation group formatAliases None Runtime symbol wrangles.recipe_wrangles.main.clean_whitespacesLegacy UUID e36e15c4-f0ad-43f8-8555-ef683a8ab892
Sources
Dates | format.dates
Format a date.
Format a date into the desired pattern.
Parameters
Name Description Accepted Values Default Required I/O inputName of the input column. string, integer, array — Yes outputName of the output column. string, array, null nullNo Formatting formatString pattern to format date. string — 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 : - format.dates : input : Date output : Output Format format : '%Y-%m-%d'
Access Requirement Value AI-powered No Requires WrangleWorks account No Requires subscription No Requires external API key No
Technical details Field Value Catalog ID 31Catalog key format.datesRecipe key format.datesCatalog status active Lifecycle status active Recipe Writer eligible Yes Namespace formatDocumentation group formatAliases None Runtime symbol wrangles.recipe_wrangles.format.datesLegacy UUID a3c15135-4f7a-4659-83fd-f657afa603c9
Sources
Pad | format.pad
Pad a string to a fixed length.
Pad a string to a fixed length
Parameters
Name Description Accepted Values Default Required I/O inputName of the input column. string, integer, array — Yes outputName of the output column. string, array, null nullNo Options sideSide from which to fill resulting string. string — Yes skip_emptyIf true, skip padding for empty or whitespace-only values. boolean falseNo Formatting pad_lengthLength for the output. integer — Yes charThe character to pad the input with. string — 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 : - format.pad : input : Part Number pad_length : 5 side : left char : "-"
Part Number -0458 --396 ---84 98516
Access Requirement Value AI-powered No Requires WrangleWorks account No Requires subscription No Requires external API key No
Technical details Field Value Catalog ID 32Catalog key format.padRecipe key format.padCatalog status active Lifecycle status active Recipe Writer eligible Yes Namespace formatDocumentation group formatAliases None Runtime symbol wrangles.recipe_wrangles.format.padLegacy UUID 76c19378-38f4-45aa-85d1-3cdf8f8aae29
Sources
Prefix | format.prefix
Add a prefix to a column.
Parameters
Name Description Accepted Values Default Required I/O inputName of the input column. string, integer, array — Yes output(Optional) Name of the output column. string, array, null nullNo Options valuePrefix value to add. string, integer, number — Yes skip_emptyWhether to skip empty values. 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 : - format.prefix : input : Data output : Prefix value : anti
Prefix antifreeze antidote antihero
Access Requirement Value AI-powered No Requires WrangleWorks account No Requires subscription No Requires external API key No
Technical details Field Value Catalog ID 33Catalog key format.prefixRecipe key format.prefixCatalog status active Lifecycle status active Recipe Writer eligible Yes Namespace formatDocumentation group formatAliases None Runtime symbol wrangles.recipe_wrangles.format.prefixLegacy UUID c12f99b9-2363-4da7-8405-7c73b87906e5
Sources
Format Price Breaks | format.price_breaks
Expand non-empty price-break cells into paired category and value columns.
Behavior
Expand non-empty price-break cells into paired category and value columns.
This guidance was derived from the callable signature.
Parameters
Name Description Accepted Values Default Required I/O inputName, index, or list of input columns. array — Yes Formatting categoryLabelPrefix for output columns that identify the source price-break category. string — Yes valueLabelPrefix for output columns that contain the corresponding price-break value. string — 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
Access Requirement Value AI-powered No Requires WrangleWorks account No Requires subscription No Requires external API key No
Technical details Field Value Catalog ID 34Catalog key format.price_breaksRecipe key format.price_breaksCatalog status active Lifecycle status active Recipe Writer eligible No Recipe Writer exclusion This newer wrangle is outside the pinned baseline. Namespace formatDocumentation group formatAliases None Runtime symbol wrangles.recipe_wrangles.format.price_breaksLegacy UUID None
Sources
Remove Duplicates | format.remove_duplicates
Remove duplicates from a list. Preserves input order.
Remove duplicate values in a list.
Parameters
Name Description Accepted Values Default Required I/O inputName of the input column. string, integer, array — Yes outputName of the output column. string, array, null nullNo Options ignore_caseIgnore case when removing duplicates. 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 : - format.remove_duplicates : input : Attack of the Clones output : Commander where : Rank = 'Commander'
Access Requirement Value AI-powered No Requires WrangleWorks account No Requires subscription No Requires external API key No
Technical details Field Value Catalog ID 35Catalog key format.remove_duplicatesRecipe key format.remove_duplicatesCatalog status active Lifecycle status active Recipe Writer eligible Yes Namespace formatDocumentation group formatAliases None Runtime symbol wrangles.recipe_wrangles.format.remove_duplicatesLegacy UUID 283b9e78-b2b2-43d0-844f-9842c33120aa
Sources
Format a value to a specific number of significant figures.
Format a value to a specific number of significant figures
Parameters
Name Description Accepted Values Default Required I/O inputName of the input column. string, integer, array — Yes outputName of the output column. string, array, null nullNo Formatting significant_figuresNumber of significant figures to format to. Default is 3. integer 3No 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 : - format.significant_figures : input : Data significant_figures : 2 output : Data to 2 Figures
Access Requirement Value AI-powered No Requires WrangleWorks account No Requires subscription No Requires external API key No
Technical details Field Value Catalog ID 36Catalog key format.significant_figuresRecipe key format.significant_figuresCatalog status active Lifecycle status active Recipe Writer eligible Yes Namespace formatDocumentation group formatAliases None Runtime symbol wrangles.recipe_wrangles.format.significant_figuresLegacy UUID a359f72a-5250-4dd8-84f6-8a8173bee0f6
Sources
Suffix | format.suffix
Add a suffix to a column.
Add a suffix to a column
Parameters
Name Description Accepted Values Default Required I/O inputName of the input column. string, integer, array — Yes output(Optional) Name of the output column. string, null nullNo Options valueSuffix value to add. string, integer, number, array — Yes skip_emptyWhether to skip empty values. 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 : - format.suffix : input : Data output : Suffix value : ic
Access Requirement Value AI-powered No Requires WrangleWorks account No Requires subscription No Requires external API key No
Technical details Field Value Catalog ID 37Catalog key format.suffixRecipe key format.suffixCatalog status active Lifecycle status active Recipe Writer eligible Yes Namespace formatDocumentation group formatAliases None Runtime symbol wrangles.recipe_wrangles.format.suffixLegacy UUID 8d127060-ba2d-4934-897f-07662e01e40b
Sources
Trim | format.trim
Remove excess whitespace at the start and end of text.
Remove excess whitespace at the start and end of text. Can accept multiple columns.
Non-string values pass through unaltered.
Parameters
Name Description Accepted Values Default Required I/O inputName of the input column. string, integer, array — Yes outputName of the output column. string, array, 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 : - format.trim : input : - col1 output : col1 trimmed
col1 col1 trimmed Hello World Hello World
Access Requirement Value AI-powered No Requires WrangleWorks account No Requires subscription No Requires external API key No
Technical details Field Value Catalog ID 38Catalog key format.trimRecipe key format.trimCatalog status active Lifecycle status active Recipe Writer eligible Yes Namespace formatDocumentation group formatAliases None Runtime symbol wrangles.recipe_wrangles.format.trimLegacy UUID af16b3c1-c230-4868-8ebe-f574904a0c76
Sources
Remove Words | remove_words
Remove all the elements that occur in one list from another.
Parameters
Name Description Accepted Values Default Required I/O inputName of column to remove words from. string, integer, array — Yes to_removeColumn or list of columns with a list of words to be removed. string — Yes outputName of the output columns. string, array, null nullNo Options tokenize_to_removeTokenize all to_remove inputs. boolean falseNo ignore_caseIgnore input and to_remove case. 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 : - remove_words : input : Description to_remove : - Materials - Colours output : Product tokenize_to_remove : True ignore_case : False
Access Requirement Value AI-powered No Requires WrangleWorks account No Requires subscription No Requires external API key No
Technical details Field Value Catalog ID 88Catalog key remove_wordsRecipe key remove_wordsCatalog status active Lifecycle status active Recipe Writer eligible Yes Namespace Root-level Documentation group formatAliases None Runtime symbol wrangles.recipe_wrangles.main.remove_wordsLegacy UUID 543b96c3-f354-48be-8046-bf0cb9fbaf56
Sources
Replace | replace
Quick find and replace for simple values. Can use regex if 'input' in params and isinstance(params['input'], list):in the find field.
Quick find and replace for simple values. Can use regex in the find field.
Values that are not a number or a string pass through unaltered.
Parameters
Name Description Accepted Values Default Required I/O inputName or list of input column. string, integer, array — Yes outputName or list of output column. string, array, null nullNo Options findPattern to find using regex. string — Yes replaceValue to replace the pattern found. string — 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 : - replace : input : Product Data find : brg replace : bearing
Product Data SKF ball bearing bearing seal
Access Requirement Value AI-powered No Requires WrangleWorks account No Requires subscription No Requires external API key No
Technical details Field Value Catalog ID 90Catalog key replaceRecipe key replaceCatalog status active Lifecycle status active Recipe Writer eligible Yes Namespace Root-level Documentation group formatAliases None Runtime symbol wrangles.recipe_wrangles.main.replaceLegacy UUID f0ab715e-9e0e-4614-83e4-5cd8ea08a09f
Sources
Round | round
Round column(s) to the specified decimals.
Round numbers in a column to the nearest decimal point of your choosing.
Parameters
Name Description Accepted Values Default Required I/O inputName of the input column(s). string, integer, array — Yes outputName of the output column(s). string, array, null nullNo Formatting decimalsNumber of decimal places to round column. integer 0No 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 : - round : input : Cost Per Unit output : Cost Rounded decimals : 2
Access Requirement Value AI-powered No Requires WrangleWorks account No Requires subscription No Requires external API key No
Technical details Field Value Catalog ID 91Catalog key roundRecipe key roundCatalog status active Lifecycle status active Recipe Writer eligible Yes Namespace Root-level Documentation group formatAliases None Runtime symbol wrangles.recipe_wrangles.pandas.roundLegacy UUID 12f3111b-8511-4e42-8d3f-b5302dc3b4e4
Sources
Translate | translate
Translate the input to a different language. Requires WrangleWorks Account and DeepL API Key (A free account for up to 500,000 characters per month is available).
Translate the input column to another language. Powered by DeepL.
Parameters
Name Description Accepted Values Default Required I/O inputName of the column to translate. string, integer, array — Yes outputName of the output column. string, array — Yes Options target_languageCode of the language to translate to. string; one of:Bulgarian Chinese Czech Danish Dutch English (American) English (British) Estonian Finnish French German Greek Hungarian Italian Japanese Latvian Lithuanian Polish Portuguese Portuguese (Brazilian) Romanian Russian Slovak Slovenian Spanish Swedish — Yes source_languageCode of the language to translate from. If omitted, automatically detects the input language. string; one of:Auto Bulgarian Chinese Czech Danish Dutch English Estonian Finnish French German Greek Hungarian Italian Japanese Latvian Lithuanian Polish Portuguese Romanian Russian Slovak Slovenian Spanish Swedish "AUTO"No caseAllow changing the case of the input prior to translation. 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 : - translate : input : Español output : English source_language : Spanish target_language : English (British)
Access Requirement Value AI-powered No Requires WrangleWorks account Yes Requires subscription No Requires external API key No
Technical details Field Value Catalog ID 96Catalog key translateRecipe key translateCatalog status active Lifecycle status active Recipe Writer eligible Yes Namespace Root-level Documentation group formatAliases None Runtime symbol wrangles.recipe_wrangles.main.translateLegacy UUID 73c3ceb6-ffd8-4d74-8389-c83b99d33bb0
Sources
Standardize (Deprecated) | standardize
This compatibility wrangle remains available for existing recipes. Use standardize.custom for new recipes.
Deprecated compatibility key for standardize.custom, which standardizes data using a trained DIY or bespoke model.
Run a standardize wrangle, such as one that expands abbreviations. A standardization wrangle must be trained first.
Parameters
Name Description Accepted Values Default Required I/O inputName or list of input columns. string, integer, array — Yes outputName or list of output columns. string, array, null nullNo Options case_sensitiveAllows the wrangle to be case sensitive if set to True, default is False. boolean falseNo Details model_idThe ID of the wrangle to use (do not include 'find' and 'replace'). string, array — 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 : - standardize : input : Abbrev output : Abbreviations model_id : code_here
Abbreviations As Soon As Possible Estimated Time of Arrival
Access Requirement Value AI-powered No Requires WrangleWorks account Yes Requires subscription No Requires external API key No
Technical details Field Value Catalog ID 95Catalog key standardizeRecipe key standardizeCatalog status active Lifecycle status deprecated Recipe Writer eligible No Recipe Writer exclusion Deprecated compatibility key; use standardize.custom. Replaced by standardize.customNamespace Root-level Documentation group formatAliases None Runtime symbol wrangles.recipe_wrangles.main.standardizeLegacy UUID 53cd3fdd-24e2-4411-8655-6014b92a3f3a
Sources