pandas.DataFrame.round
pandas 3.1.1 · DataFrame · method
Round values to a specified precision. For datetime-like objects use a frequency.
Call syntax
DataFrame.round(decimals=0, *args, **kwargs)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
decimals |
Optional Positional or keyword Default 0 |
int, dict, Series |
*args |
Optional Additional positional arguments |
|
**kwargs |
Optional Additional keyword arguments |
Returns
DataFrame