From e0c8fd42dd63a6ebed684ac124dda204ef5dbc4f Mon Sep 17 00:00:00 2001 From: eightyseven Date: Tue, 15 Oct 2024 20:05:42 +0800 Subject: [PATCH 1/2] fix docstring of timedaltas.cela --- pandas/_libs/tslibs/timedeltas.pyx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index bbefea7c47fc3..e581a0f6ee388 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -2176,8 +2176,10 @@ class Timedelta(_Timedelta): Parameters ---------- freq : str - Frequency string indicating the ceiling resolution. - It uses the same units as class constructor :class:`~pandas.Timedelta`. + The frequency level to ceil the index to. Must be a fixed + frequency like 's' (second) not 'ME' (month end). See + :ref:`frequency aliases ` for + a list of possible `freq` values. Returns ------- From 1ed18462b58d3d29465add61d1d024cc4876f544 Mon Sep 17 00:00:00 2001 From: eightyseven Date: Wed, 30 Oct 2024 14:26:44 +0800 Subject: [PATCH 2/2] Update pandas/_libs/tslibs/timedeltas.pyx Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> --- pandas/_libs/tslibs/timedeltas.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index e581a0f6ee388..4949f19f1e2ab 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -2176,7 +2176,7 @@ class Timedelta(_Timedelta): Parameters ---------- freq : str - The frequency level to ceil the index to. Must be a fixed + Frequency string indicating the ceiling resolution. Must be a fixed frequency like 's' (second) not 'ME' (month end). See :ref:`frequency aliases ` for a list of possible `freq` values.