Skip to content

Commit

Permalink
DOC: fixing RT03 erros for Index: duplicated and nunique (#58432)
Browse files Browse the repository at this point in the history
* DOC: fixing RT03 erros for Index: duplicated and nunique

* deleting it lines from code_checks

* fixing EXPECTED TO FAIL, BUT NOT FAILING error

* fixing code_checks issue

* fixed Expected to fail error
  • Loading branch information
KeiOshima committed Apr 30, 2024
1 parent f3f3853 commit 7cdee7a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ci/code_checks.sh
Expand Up @@ -93,15 +93,13 @@ 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" \
-i "pandas.Index.get_loc PR07,RT03,SA01" \
-i "pandas.Index.identical PR01,SA01" \
-i "pandas.Index.join PR07,RT03,SA01" \
-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.slice_indexer PR07,RT03,SA01" \
Expand Down Expand Up @@ -256,7 +254,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" \
Expand Down
1 change: 1 addition & 0 deletions pandas/core/base.py
Expand Up @@ -1062,6 +1062,7 @@ def nunique(self, dropna: bool = True) -> int:
Returns
-------
int
A integer indicating the number of unique elements in the object.
See Also
--------
Expand Down
1 change: 1 addition & 0 deletions pandas/core/indexes/base.py
Expand Up @@ -2767,6 +2767,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
--------
Expand Down

0 comments on commit 7cdee7a

Please sign in to comment.