The round() function

The round() function helps in rounding off decimals. By default, the values are rounded off to a whole number:

sales_df.round()

The following is the output:

The round() function's results

The round function can be applied as shown here:

sales_df.round(decimals = 10)

The following is the output:

The round() function for decimals = 10
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset