From 430be5f76242e28b9961d0346199b2b2f048ab1e Mon Sep 17 00:00:00 2001 From: Jirka Date: Fri, 15 Sep 2023 20:29:28 +0200 Subject: [PATCH] docs: add explanation about `freq` units in `Timedelta.round()` --- pandas/_libs/tslibs/timedeltas.pyx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 2d9fe93c397cb..2178e972b4d08 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1942,6 +1942,7 @@ class Timedelta(_Timedelta): ---------- freq : str Frequency string indicating the rounding resolution. + It uses the same units as class contructor :class:`~pandas.Timedelta`. Returns ------- @@ -1969,6 +1970,7 @@ class Timedelta(_Timedelta): ---------- freq : str Frequency string indicating the flooring resolution. + It uses the same units as class contructor :class:`~pandas.Timedelta`. Examples -------- @@ -1988,6 +1990,7 @@ class Timedelta(_Timedelta): ---------- freq : str Frequency string indicating the ceiling resolution. + It uses the same units as class contructor :class:`~pandas.Timedelta`. Examples --------