def round(self, decimals=0, *args):
        validate_args(args, min_length=0, max_length=1,
                      msg="Inplace rounding is not supported")

        result = _values_from_object(self).round(decimals)
        result = self._constructor(result, index=self.index).__finalize__(self)

        return result
Round each value in a Series to the given number of decimals.
dataset/ETHPy150Open pydata/pandas/pandas/core/series.py/Series.round