EXPAND ALL
- Home
- About Pixie
- Installing Pixie
- Using Pixie
- Tutorials
- Reference
Rounds the float to the nearest decimal place and returns value as a string. Used to clean up the data shown in tables. Set decimals to 0
if you want to round to the nearest int value.
Float rounded to the specified decimal place as a string.
Variable | Type | Description |
---|---|---|
value | FLOAT64 | The value to round. |
decimals | INT64 | Number of decimal places to round to. `0` => round to nearest int. |
df.cpu1 = 0.248df.cpu1 = px.round(df.cpu1, 2) # 0.25