Skip to main content

Remove Words

Remove all the elements that occur in one list from another.

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
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, nullnullNo
Options
tokenize_to_removeTokenize all to_remove inputs.booleanfalseNo
ignore_caseIgnore input and to_remove case.booleantrueNo
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: # To Remove columns must be list
- Materials
- Colours
output: Product
tokenize_to_remove: True
ignore_case: False
ColoursMaterialsDescription
['Blue']['Steel']Steel Blue Bottle
['Blue']['Steel']['Steel', 'Blue', 'Bottle']
Product
Bottle
Bottle
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID88
Catalog keyremove_words
Recipe keyremove_words
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
NamespaceRoot-level
Documentation groupformat
AliasesNone
Runtime symbolwrangles.recipe_wrangles.main.remove_words
Legacy UUID543b96c3-f354-48be-8046-bf0cb9fbaf56

Sources