From 7d74465a54ff27609ffbe719f6bededaa12a468f Mon Sep 17 00:00:00 2001 From: eightyseven Date: Wed, 30 Oct 2024 19:50:26 +0800 Subject: [PATCH] doc-change4 --- pandas/core/series.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/core/series.py b/pandas/core/series.py index fe2bb0b5aa5c3..7af7f70b522e0 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -2462,7 +2462,7 @@ def idxmax(self, axis: Axis = 0, skipna: bool = True, *args, **kwargs) -> Hashab def round(self, decimals: int = 0, *args, **kwargs) -> Series: """ - Round each value in a Series to the given number of decimals. + Round each numerical value in a Series to the given number of decimals. Parameters ---------- @@ -2482,6 +2482,7 @@ def round(self, decimals: int = 0, *args, **kwargs) -> Series: -------- numpy.around : Round values of an np.array. DataFrame.round : Round values of a DataFrame. + Series.dt.round : Round datetime-like values of a Series. Notes -----