From d06a48f57f99fec9d31b66e9a5cd90e67633fe8c Mon Sep 17 00:00:00 2001 From: ZKaoChi <1953542921@qq.com> Date: Mon, 28 Oct 2024 16:32:25 +0800 Subject: [PATCH 1/2] Change the format of the statement --- pandas/_libs/tslibs/timedeltas.pyx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index bbefea7c47fc3..741d48c5cde76 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1867,7 +1867,9 @@ class Timedelta(_Timedelta): value : Timedelta, timedelta, np.timedelta64, str, or int Input value. unit : str, default 'ns' - Denote the unit of the input, if input is an integer. + If input is an integer, denote the unit of the input. + If input is a float, denote the unit of integer parts. + The decimal parts with a resolution lower than 1 nanosecond are ignored. Possible values: From 415657730a750b8b65217c721ff36d4276a67aca Mon Sep 17 00:00:00 2001 From: ZKaoChi <1953542921@qq.com> Date: Mon, 28 Oct 2024 16:47:57 +0800 Subject: [PATCH 2/2] Change the format of the statement --- 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 741d48c5cde76..58313c92ae311 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1869,7 +1869,7 @@ class Timedelta(_Timedelta): unit : str, default 'ns' If input is an integer, denote the unit of the input. If input is a float, denote the unit of integer parts. - The decimal parts with a resolution lower than 1 nanosecond are ignored. + The decimal parts with resolution lower than 1 nanosecond are ignored. Possible values: