From 9b5d57ae1ca6da08b396f308666096ef8fc9dbb7 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Thu, 2 May 2024 17:31:29 +0530 Subject: [PATCH 1/2] DOC: remove SA01 for pandas.Series.dt.days --- ci/code_checks.sh | 1 - pandas/core/arrays/timedeltas.py | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 996f361e9440f..806b22d67a3c5 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -185,7 +185,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Series.dt.ceil PR01,PR02" \ -i "pandas.Series.dt.components SA01" \ -i "pandas.Series.dt.day_name PR01,PR02" \ - -i "pandas.Series.dt.days SA01" \ -i "pandas.Series.dt.days_in_month SA01" \ -i "pandas.Series.dt.daysinmonth SA01" \ -i "pandas.Series.dt.floor PR01,PR02" \ diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py index ff43f97161136..865e81d7754ef 100644 --- a/pandas/core/arrays/timedeltas.py +++ b/pandas/core/arrays/timedeltas.py @@ -799,6 +799,12 @@ def to_pytimedelta(self) -> npt.NDArray[np.object_]: days_docstring = textwrap.dedent( """Number of days for each element. + See Also + -------- + Series.dt.seconds : Return number of seconds for each element. + Series.dt.microseconds : Return number of microseconds for each element. + Series.dt.nanoseconds : Return number of nanoseconds for each element. + Examples -------- For Series: From a43c0cf2c17755b7946fe18c507b75877ddfe33c Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Thu, 2 May 2024 18:49:28 +0530 Subject: [PATCH 2/2] DOC: remove SA01 for pandas.TimedeltaIndex.days --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 806b22d67a3c5..ac030b46486c1 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -311,7 +311,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Timedelta.view SA01" \ -i "pandas.TimedeltaIndex.as_unit RT03,SA01" \ -i "pandas.TimedeltaIndex.components SA01" \ - -i "pandas.TimedeltaIndex.days SA01" \ -i "pandas.TimedeltaIndex.microseconds SA01" \ -i "pandas.TimedeltaIndex.nanoseconds SA01" \ -i "pandas.TimedeltaIndex.seconds SA01" \