From 14ed5bb3ea9d520135c4ca77dca4488cd4686fa3 Mon Sep 17 00:00:00 2001 From: KeiOshima Date: Thu, 25 Apr 2024 15:27:45 -0400 Subject: [PATCH 1/5] DOC: fixing RT03 erros for Index: duplicated and nunique --- pandas/core/base.py | 1 + pandas/core/indexes/base.py | 1 + 2 files changed, 2 insertions(+) diff --git a/pandas/core/base.py b/pandas/core/base.py index ab27248308d74..5c16a5c6bfe91 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -1026,6 +1026,7 @@ def nunique(self, dropna: bool = True) -> int: Returns ------- int + A integer indicating the number of unique elements in the object. See Also -------- diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index ffc228d57a95b..fcffd5be249f0 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2743,6 +2743,7 @@ def duplicated(self, keep: DropKeep = "first") -> npt.NDArray[np.bool_]: Returns ------- np.ndarray[bool] + A numpy array of boolean values indicating duplicate index values. See Also -------- From b58a74f0ef396f601dd50e31a1e1282b1672f2cf Mon Sep 17 00:00:00 2001 From: KeiOshima Date: Thu, 25 Apr 2024 15:40:26 -0400 Subject: [PATCH 2/5] deleting it lines from code_checks --- ci/code_checks.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index e2d125ad1fc68..2000254ac8b19 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -121,7 +121,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Index.drop_duplicates RT03" \ -i "pandas.Index.droplevel RT03,SA01" \ -i "pandas.Index.dropna RT03,SA01" \ - -i "pandas.Index.duplicated RT03" \ -i "pandas.Index.empty GL08" \ -i "pandas.Index.get_indexer PR07,SA01" \ -i "pandas.Index.get_indexer_for PR01,SA01" \ @@ -135,7 +134,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Index.join PR07,RT03,SA01" \ -i "pandas.Index.memory_usage RT03" \ -i "pandas.Index.names GL08" \ - -i "pandas.Index.nunique RT03" \ -i "pandas.Index.putmask PR01,RT03" \ -i "pandas.Index.ravel PR01,RT03" \ -i "pandas.Index.reindex PR07" \ From 44b191480701d82616b9860016d660bc2b44b014 Mon Sep 17 00:00:00 2001 From: KeiOshima Date: Thu, 25 Apr 2024 16:08:16 -0400 Subject: [PATCH 3/5] fixing EXPECTED TO FAIL, BUT NOT FAILING error --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 2000254ac8b19..0703462bf581f 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -298,7 +298,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Series.mode SA01" \ -i "pandas.Series.mul PR07" \ -i "pandas.Series.ne PR07,SA01" \ - -i "pandas.Series.nunique RT03" \ -i "pandas.Series.pad PR01,SA01" \ -i "pandas.Series.plot PR02,SA01" \ -i "pandas.Series.pop RT03,SA01" \ From 9361cc583f64868d384d14472dc2ee580675399d Mon Sep 17 00:00:00 2001 From: KeiOshima Date: Thu, 25 Apr 2024 17:38:09 -0400 Subject: [PATCH 4/5] fixing code_checks issue --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index cf95d97bb6837..eb2ff862eb9aa 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -112,7 +112,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Index.drop PR07,SA01" \ -i "pandas.Index.droplevel RT03,SA01" \ -i "pandas.Index.dropna RT03,SA01" \ - -i "pandas.Index.duplicated RT03" \ -i "pandas.Index.get_indexer PR07,SA01" \ -i "pandas.Index.get_indexer_for PR01,SA01" \ -i "pandas.Index.get_indexer_non_unique PR07,SA01" \ From 47ed6ccd9139f138554dc151fd5284f64accd63e Mon Sep 17 00:00:00 2001 From: KeiOshima Date: Mon, 29 Apr 2024 18:46:33 -0400 Subject: [PATCH 5/5] fixed Expected to fail error --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 6920b7b800829..45831f6030794 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -93,7 +93,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Index PR07" \ -i "pandas.Index.append PR07,RT03,SA01" \ -i "pandas.Index.difference PR07,RT03,SA01" \ - -i "pandas.Index.duplicated RT03" \ -i "pandas.Index.get_indexer PR07,SA01" \ -i "pandas.Index.get_indexer_for PR01,SA01" \ -i "pandas.Index.get_indexer_non_unique PR07,SA01" \