From cf12367bef25fbeb844750b87c0781f789f3d653 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Fri, 26 Apr 2024 09:46:42 +0530 Subject: [PATCH 1/3] DOC: add RT03 for pandas.DatetimeIndex.to_period --- pandas/core/arrays/datetimes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 106064ade8344..a8d5479f29fc1 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -1201,6 +1201,7 @@ def to_period(self, freq=None) -> PeriodArray: Returns ------- PeriodArray/PeriodIndex + Immutable ndarray holding ordinal values at a particular frequency. Raises ------ From a4e0735e1acfd5ec8de3a58f6b9110a935533370 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Fri, 26 Apr 2024 09:47:14 +0530 Subject: [PATCH 2/3] DOC: remove RT03 for pandas.DatetimeIndex.to_period --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 9aae477ca1af3..dd652cbf330b8 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -101,7 +101,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.DatetimeIndex.indexer_at_time PR01,RT03" \ -i "pandas.DatetimeIndex.snap PR01,RT03" \ -i "pandas.DatetimeIndex.std PR01,RT03" \ - -i "pandas.DatetimeIndex.to_period RT03" \ -i "pandas.DatetimeIndex.to_pydatetime RT03,SA01" \ -i "pandas.DatetimeTZDtype SA01" \ -i "pandas.Grouper PR02" \ From c8ca6c7a382b6493ee80137c50fa71830da8f9dd Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Fri, 26 Apr 2024 22:45:05 +0530 Subject: [PATCH 3/3] DOC: remove RT03 for pandas.Series.dt.to_period --- ci/code_checks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index dd652cbf330b8..b32309c6329bd 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -255,7 +255,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Series.dt.round PR01,PR02" \ -i "pandas.Series.dt.seconds SA01" \ -i "pandas.Series.dt.strftime PR01,PR02" \ - -i "pandas.Series.dt.to_period PR01,PR02,RT03" \ + -i "pandas.Series.dt.to_period PR01,PR02" \ -i "pandas.Series.dt.total_seconds PR01" \ -i "pandas.Series.dt.tz_convert PR01,PR02" \ -i "pandas.Series.dt.tz_localize PR01,PR02" \