Skip to main content

Round

Round column(s) to the specified decimals.

Round numbers in a column to the nearest decimal point of your choosing.

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName of the input column(s).string, integer, array—Yes
outputName of the output column(s).string, array, nullnullNo
Formatting
decimalsNumber of decimal places to round column.integer0No
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
Cost Per Unit
3.14159
2.71828
Cost Rounded
3.14
2.72
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID91
Catalog keyround
Recipe keyround
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
NamespaceRoot-level
Documentation groupformat
AliasesNone
Runtime symbolwrangles.recipe_wrangles.pandas.round
Legacy UUID12f3111b-8511-4e42-8d3f-b5302dc3b4e4

Sources