Skip to content

Commit c5b69b9

Browse files
KeiOshimapmhatre1
authored andcommitted
DOC: fixing RT03 erros for Index: duplicated and nunique (pandas-dev#58432)
* 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
1 parent 78c55fe commit c5b69b9

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

ci/code_checks.sh

-3
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,13 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
9393
-i "pandas.Index PR07" \
9494
-i "pandas.Index.append PR07,RT03,SA01" \
9595
-i "pandas.Index.difference PR07,RT03,SA01" \
96-
-i "pandas.Index.duplicated RT03" \
9796
-i "pandas.Index.get_indexer PR07,SA01" \
9897
-i "pandas.Index.get_indexer_for PR01,SA01" \
9998
-i "pandas.Index.get_indexer_non_unique PR07,SA01" \
10099
-i "pandas.Index.get_loc PR07,RT03,SA01" \
101100
-i "pandas.Index.identical PR01,SA01" \
102101
-i "pandas.Index.join PR07,RT03,SA01" \
103102
-i "pandas.Index.names GL08" \
104-
-i "pandas.Index.nunique RT03" \
105103
-i "pandas.Index.putmask PR01,RT03" \
106104
-i "pandas.Index.ravel PR01,RT03" \
107105
-i "pandas.Index.slice_indexer PR07,RT03,SA01" \
@@ -256,7 +254,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
256254
-i "pandas.Series.mode SA01" \
257255
-i "pandas.Series.mul PR07" \
258256
-i "pandas.Series.ne PR07,SA01" \
259-
-i "pandas.Series.nunique RT03" \
260257
-i "pandas.Series.pad PR01,SA01" \
261258
-i "pandas.Series.plot PR02,SA01" \
262259
-i "pandas.Series.pop RT03,SA01" \

pandas/core/base.py

+1
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,7 @@ def nunique(self, dropna: bool = True) -> int:
10621062
Returns
10631063
-------
10641064
int
1065+
A integer indicating the number of unique elements in the object.
10651066
10661067
See Also
10671068
--------

pandas/core/indexes/base.py

+1
Original file line numberDiff line numberDiff line change
@@ -2767,6 +2767,7 @@ def duplicated(self, keep: DropKeep = "first") -> npt.NDArray[np.bool_]:
27672767
Returns
27682768
-------
27692769
np.ndarray[bool]
2770+
A numpy array of boolean values indicating duplicate index values.
27702771
27712772
See Also
27722773
--------

0 commit comments

Comments
 (0)