From 2d2bb222f1e819858a2aa0850ce2b8871a53cc66 Mon Sep 17 00:00:00 2001 From: eightyseven Date: Wed, 30 Oct 2024 16:09:11 +0800 Subject: [PATCH] fix docstring in Series.round --- 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..50ca61de54b98 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 datetimelike values of a Series. Notes -----