pandas.Series.round
pandas 3.1.1 · Series and accessors · method
Round values to a specified precision. For datetime-like objects use a frequency.
Call syntax
Series.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 |
*args |
Optional Additional positional arguments |
|
**kwargs |
Optional Additional keyword arguments |
Returns
Series