Skip to main content

Standardize


This is a testing env The Standardize Wrangle can be used to replace words or patterns with their "standardized" form. You can think of this Wrangle as a smart find-and-replace feature. In addition to our Standardize Stock Wrangles, you can customize Standardize Wrangles so that they are much more unique to your use case.

Click here to learn how to use Standardize Wrangles in a recipe.

Convert Attributes

Convert units or standardize if Convert To is set to Standard.

Tabset​

Example​

Decimal Places = 2

Before
1/2 inch
1/3 foot
1/4 yard

→

After
.50 in
4 in
9 in

Options​

OptionNotes
AttrbuteThe attribute to be extracted.
Convert toThe desired unit for the output (an attribute must be selected for this option). All units will be converted if not already represented in desired unit.
Significant FiguresThe number of digits to report the value.

Attributes​

AttributeDescription
AllExtracts all attributes found as a JSON object
AngleAngles in degrees or radians
Area2D areas such as m<sup>2</sup> or ft<sup>2</sup>
CapacitanceThe amount of charge that can be stored at a given voltage by an electrical component called a capacitor.
ChargeElectric charge (measured in coulombs).
CurrentElectrical current.
Data Transfer RateThe speed at which data moves from one device to another or within a network.
Electric PotentialThe difference in potential energy per unit charge between two locations in an electric field (ie the voltage).
Electrical ConductanceThe measure of how easily an electrical current passes through a material.
Electrical ResistanceThe measure of the opposition to the flow of current in an electrical circuit.
EnergyPower derived from the utilization of physical or chemical resources, especially to provide light and heat or to work machines.
ForceForces such as newtons.
FrequencyThe measure of how often something happens or repeats within a unit of time.
InductanceThe tendency of an electrical conductor to oppose a change in the electric current flowing through it.
Instance FrequencyThe frequency of a signal at a specific point in time (ie rotations per minute or rpm).
LengthLengths such as mm or inches
Luminous FluxA measure of the perceived power of light emitted from a light source.
MassThe measure of the amount of matter in a body.
PowerPower such as watts or hp
PressurePressure such as psi or bar
SpeedThe rate at which someone or something is able to move or operate.
TemperatureThe average kinetic energy of the vibrating and colliding atoms making up a substance.
Volume3D volumes such as m<sup>3</sup> or ft<sup>3</sup>
Volumetric FlowAlso known as volume flow rate, or volume velocity, is the volume of fluid which passes per unit time.

Fraction to Decimal

Standardize each fraction into its decimal equivalent.

Tabset​

Example​

Decimal Places = 2

Before
1/2
1/3
1/4

→

After
.50
.33
.25

Phone Numbers

Standardize phone numbers to a consistent format by choosing from predefined format options or customizing your own. Note: This Wrangle reformats phone numbers starting from the last digit and cuts off any excess digits outside the specified format. It performs the reformatting from right to left.

Tabset​

Options​

OptionExample
(XXX) XXX XXXX(123) 456 7890
(XXX)-XXX-XXXX(123)-456-7890
XXX XXX XXXX123 456 7890
Custom format example: XXX-XXX567-890

Remove Attributes

Remove attributes from the selected range

Tabset​

Example​

Character to Remove: !

Before
It's a 13ft shark!
13mm Ratchet Wrench
3lb Hammer

→

After
It's a shark!
Ratchet Wrench
Hammer

Remove Characters

Standardize your data by removing specific characters.

remove_brackets.gif

Tabset​

Example​

Character to Remove: !

Before
I would love to tell you about Wrangle works! It's so cool.
Wrangle Works is the BEST!

→

After
I would love to tell you about Wrangle works It's so cool.
Wrangle Works is the BEST

Remove Words

Standardize your data by removing specific words. The Remove Words wrangle will remove words found in subsequent columns from the leftmost column. This can be done in entirety (where ordering of the words matters) with the "Tokenize to remove" parameter set to False, or word for word with "Tokenize to remove" set to True. The "Ignore Case" parameter can also be used to account for or ignore case when set to True or False (respectively).

remove_words.gif

Tabset​

Example​

Removing Part Numbers From Description

DescriptionPart Number
Sartwatch Apple 0000ADKEJN88ENK Red $6000000ADKEJN88ENK
Voluptatem Samsung 2lb Blue 0000AHYR898RFHUI $1000000AHYR898RFHUI
0000HHGT7TR97H GGL Steel TV AAA $1000000HHGT7TR97H

→

Description - Remove Words
Sartwatch Apple Red $600
Voluptatem Samsung 2lb Blue $100
0000HHGT7TR97H GGL Steel TV AAA $100

Replace

Standardize data with our find and replace functionality; optionally utilize regular expressions for advanced matching.

Click here to learn how to use Replace Wrangles in a recipe.

Tabset​

Example​

Before
Wrangle works is 4 years old
Wrangle works is 4 years old

→

Regex
Off - Find: young , Replace: old
On - Find: \d , Replace: #

→

After
Wrangle works is 4 years young
Wrangle works is # years old

Round

Round to a set number of decimal places. Number of decimal places to round to can be set by the user. The example below shows rounding to two decimal places.

Click here to learn how to use Round Wrangles in a recipe.

Before
3.14159265359
2.718281828459045
6.02214076 × 10^23

→

After
3.14
2.72
6.02 x 10^23

Significant Figures

Standardize the precision of your numerical data by specifying the desired number of significant figures.

Tabset​

Example​

Significant Figures: 3

Before
0.0544859
0.75849

→

After
0.0545
0.758

Spaces

Standardize text by eliminating extra spaces and converting special space characters to a single space.

extra_spaces.gif

Tabset​

Example​

In the case of zero width space in a URL

Before
wrangles.io
wrangleworks.com

→

After
wrangle s.io
wrangle works.com