DataFrame.round
Round elements in a DataFrame to a specified number of decimal places.
danfo.DataFrame.round(options)
Parameters
Type
Description
Default
dp
Int
Number of decimal places to round to. Defaults to 1
1
options
Object
inplace: Boolean indicating whether to perform the operation inplace or not. Defaults to false
{ inplace: false }
Examples
Round elements to 1dp (Default)
Round elements to a specified number of decimal places
Last updated
Was this helpful?