modin.pandas.Series.round¶
- Series.round(decimals=0, *args, **kwargs)[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.21.0/src/snowflake/snowpark/modin/pandas/series.py#L1887-L1917)¶
Round each value in a Series to the given number of decimals.
- Parameters:
decimals (int, default 0) – Number of decimal places to round to. If decimals is negative, it specifies the number of positions to the left of the decimal point.
*args – Additional arguments and keywords have no effect but might be accepted for compatibility with NumPy.
**kwargs – Additional arguments and keywords have no effect but might be accepted for compatibility with NumPy.
- Returns:
Rounded values of the Series.
- Return type:
See also
numpy.around
Round values of an np.array.
DataFrame.round
Round values of a DataFrame.
Examples
>>> s = pd.Series([0.1, 1.3, 2.7]) >>> s.round() 0 0.0 1 1.0 2 3.0 dtype: float64