Skip to content

Commit 92bade8

Browse files
KeiOshimapmhatre1
authored andcommitted
DOC: ficing RT03 errors for Index: drop_duplicates and memory_usage (pandas-dev#58434)
1 parent 1875123 commit 92bade8

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

ci/code_checks.sh

-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
111111
-i "pandas.Index.copy PR07,SA01" \
112112
-i "pandas.Index.difference PR07,RT03,SA01" \
113113
-i "pandas.Index.drop PR07,SA01" \
114-
-i "pandas.Index.drop_duplicates RT03" \
115114
-i "pandas.Index.droplevel RT03,SA01" \
116115
-i "pandas.Index.dropna RT03,SA01" \
117116
-i "pandas.Index.duplicated RT03" \
@@ -125,7 +124,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
125124
-i "pandas.Index.insert PR07,RT03,SA01" \
126125
-i "pandas.Index.intersection PR07,RT03,SA01" \
127126
-i "pandas.Index.join PR07,RT03,SA01" \
128-
-i "pandas.Index.memory_usage RT03" \
129127
-i "pandas.Index.names GL08" \
130128
-i "pandas.Index.nunique RT03" \
131129
-i "pandas.Index.putmask PR01,RT03" \

pandas/core/base.py

+1
Original file line numberDiff line numberDiff line change
@@ -1170,6 +1170,7 @@ def _memory_usage(self, deep: bool = False) -> int:
11701170
Returns
11711171
-------
11721172
bytes used
1173+
Returns memory usage of the values in the Index in bytes.
11731174
11741175
See Also
11751176
--------

pandas/core/indexes/base.py

+1
Original file line numberDiff line numberDiff line change
@@ -2684,6 +2684,7 @@ def drop_duplicates(self, *, keep: DropKeep = "first") -> Self:
26842684
Returns
26852685
-------
26862686
Index
2687+
A new Index object with the duplicate values removed.
26872688
26882689
See Also
26892690
--------

0 commit comments

Comments
 (0)