From f7359b68574e67b33ee2b41ff40ca84a2f52149d Mon Sep 17 00:00:00 2001 From: Jordan Murphy <35613487+jordan-d-murphy@users.noreply.github.com> Date: Sun, 10 Mar 2024 13:57:11 -0600 Subject: [PATCH] fix RT03 pandas.timedelta_range and pandas.util.hash_pandas_object --- ci/code_checks.sh | 4 +--- pandas/core/indexes/timedeltas.py | 1 + pandas/core/util/hashing.py | 3 ++- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index c4e43b88a0097..d01db76a8fab3 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -858,9 +858,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.read_sas\ pandas.read_spss\ pandas.read_stata\ - pandas.set_eng_float_format\ - pandas.timedelta_range\ - pandas.util.hash_pandas_object # There should be no backslash in the final line, please keep this comment in the last ignored function + pandas.set_eng_float_format # There should be no backslash in the final line, please keep this comment in the last ignored function RET=$(($RET + $?)) ; echo $MSG "DONE" MSG='Partially validate docstrings (SA01)' ; echo $MSG diff --git a/pandas/core/indexes/timedeltas.py b/pandas/core/indexes/timedeltas.py index 4a4b0ac1444d6..6a2c04b0ddf51 100644 --- a/pandas/core/indexes/timedeltas.py +++ b/pandas/core/indexes/timedeltas.py @@ -304,6 +304,7 @@ def timedelta_range( Returns ------- TimedeltaIndex + Fixed frequency, with day as the default. Notes ----- diff --git a/pandas/core/util/hashing.py b/pandas/core/util/hashing.py index f7e9ff220eded..3b9dd40a92ce8 100644 --- a/pandas/core/util/hashing.py +++ b/pandas/core/util/hashing.py @@ -106,7 +106,8 @@ def hash_pandas_object( Returns ------- - Series of uint64, same length as the object + Series of uint64 + Same length as the object. Examples --------