Skip to main content

Attributes

Extract numeric attributes from the input such as weights or lengths. Requires WrangleWorks Account.

Extract numeric attributes from unstructured text such as lengths, voltages, weights, or temperatures. Requires WrangleWorks Account.

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName of the input column.string, integer, array—Yes
outputName of the output column.string, array—Yes
Options
responseContentSpan - returns the text found. object - returns an object with the value and unit.string; one of:
  • span
  • object
"span"No
attribute_typeRequest only a specific type of attribute.string, null; one of:
  • angle
  • area
  • capacitance
  • charge
  • current
  • data transfer rate
  • electrical conductance
  • electrical resistance
  • energy
  • force
  • frequency
  • inductance
  • instance frequency
  • length
  • luminous flux
  • weight
  • power
  • pressure
  • speed
  • velocity
  • temperature
  • time
  • voltage
  • volume
  • volumetric flow
nullNo
desired_unitConvert the extracted unit to the desired unit.string, nullnullNo
boundWhen returning an object, if the input is a range (e.g. 10-20mm) set the value to return. min, mid or max. Default mid.string; one of:
  • min
  • mid
  • max
"mid"No
Formatting
first_elementGet the first element from results.booleanfalseNo
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

Examples​

wrangles:
- extract.attributes:
input: tools
output: attributes
responseContent: span
Tools (input)
hammer 5kg, 0.5m
Attributes (span )(output)
{'length': ['0.5m'], 'mass': ['5kg']}
wrangles:
- extract.attributes:
input: tools
output: attributes
responseContent: object
Tools (input)
hammer 5kg, 0.5m
Attributes (Object) (output)
{'length': [{'unit': 'metre', 'value': 0.5}], 'mass': [{'unit': 'kilogram', 'value': 5.0}]}
wrangles:
- extract.attributes:
input: Tools
output: attributes
responseContent: span
attribute_type: mass # Specific attributes

No sample available.

No sample available.

Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountYes
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID22
Catalog keyextract.attributes
Recipe keyextract.attributes
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceextract
Documentation groupextract
AliasesNone
Runtime symbolwrangles.recipe_wrangles.extract.attributes
Legacy UUID03ccedef-c938-41f1-8980-280f1a91542e

Sources