Skip to main content

Custom

Extract data from the input using a DIY or bespoke extraction wrangle. Requires WrangleWorks Account and Subscription.

Extract data from the input using a DIY or bespoke extraction wrangle. Can be performed on one column or multiple columns. Requires WrangleWorks Account and Subscription.

info

Non-regex pattern matching extracts whole-word matches separated by word boundaries. Word boundaries include anything that is not a letter, number, or underscore.

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName or list of input columns.string, integer, array—Yes
outputName or list of output columns.string, array, nullnullNo
Options
case_sensitiveAllows the wrangle to be case sensitive if set to True, default is False.booleanfalseNo
extract_rawExtract the raw data from the wrangle.booleanfalseNo
use_spellcheckUse spellcheck to also find minor mispellings compared to the reference data.booleanfalseNo
sortSort the results.string; one of:
  • training_order
  • input_order
  • longest
  • shortest
  • alphabetical
  • reverse_alphabetical
  • ascending
  • descending
"training_order"No
Formatting
use_labelsUse Labels in the extract output {label: value}.booleanfalseNo
first_elementGet the first element from results.booleanfalseNo
include_empty_labelsInclude labels with no found values in the output when using use_labels=True.booleantrueNo
output_formatFormat of the extract output.string, null; one of:
  • list
  • dictionary
  • columns
  • concatenate
nullNo
charCharacter to use when output_format is concatenate.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
Details
model_idThe ID of the wrangle to use.string, array—Yes

Examples​

# One column input
wrangles:
- extract.custom:
input: Product
output: Wood Types
model_id: model_id_here
Product
Dining Oakwood Chair
Living Room Teakwood Frame Mirror
Wood Types
Oakwood
Teakwood
# Multi column input
wrangles:
- extract.custom:
input:
- Part 1 of 2
- Part 2 of 2
output: Wood Types
model_id: model_id_here
Part 1 of 2Part 2 of 2
Dining Acacia Wood TableImitation Wood Table Chairs
Wood Types
['Acacia Wood', 'Imitation Wood']
# Multiple Models
wrangles:
- extract.custom:
input:
- Product
- Product
output:
- Wood Types
- Item Type
model_id:
- wood_Type_model_id
- item_type_model_id

No sample available.

ProductItem TypeWood Types
Dining Oakwood ChairChairOakwood
Living Room Teakwood Frame MirrorMirrorTeakwood
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountYes
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID25
Catalog keyextract.custom
Recipe keyextract.custom
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceextract
Documentation groupextract
AliasesNone
Runtime symbolwrangles.recipe_wrangles.extract.custom
Legacy UUIDe8e96b76-86bf-41dc-8d16-825dcff9688b

Sources