Series.round(self, decimals=0, *args, **kwargs)
[source]
Round each value in a Series to the given number of decimals.
Parameters: |
|
---|---|
Returns: |
|
See also
numpy.around
DataFrame.round
>>> s = pd.Series([0.1, 1.3, 2.7]) >>> s.round() 0 0.0 1 1.0 2 3.0 dtype: float64
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.Series.round.html