Skip to content

Commit 3334a17

Browse files
Fix RT03 and SA01 errors for Index.droplevel, Index.dropna, Index.fillna
1 parent 6320c8b commit 3334a17

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

ci/code_checks.sh

-3
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,8 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
120120
-i "pandas.Index.difference PR07,RT03,SA01" \
121121
-i "pandas.Index.drop PR07,SA01" \
122122
-i "pandas.Index.drop_duplicates RT03" \
123-
-i "pandas.Index.droplevel RT03,SA01" \
124-
-i "pandas.Index.dropna RT03,SA01" \
125123
-i "pandas.Index.duplicated RT03" \
126124
-i "pandas.Index.empty GL08" \
127-
-i "pandas.Index.fillna RT03" \
128125
-i "pandas.Index.get_indexer PR07,SA01" \
129126
-i "pandas.Index.get_indexer_for PR01,SA01" \
130127
-i "pandas.Index.get_indexer_non_unique PR07,SA01" \

pandas/core/indexes/base.py

+14
Original file line numberDiff line numberDiff line change
@@ -2093,6 +2093,12 @@ def droplevel(self, level: IndexLabel = 0):
20932093
Returns
20942094
-------
20952095
Index or MultiIndex
2096+
Returns an Index or MultiIndex object, depending on the resulting index
2097+
after removing the requested level(s).
2098+
2099+
See Also
2100+
--------
2101+
Index.dropna : Return Index without NA/NaN values.
20962102
20972103
Examples
20982104
--------
@@ -2578,6 +2584,8 @@ def fillna(self, value):
25782584
Returns
25792585
-------
25802586
Index
2587+
Returns an Index object with NaN values filled with the specified scalar
2588+
value.
25812589
25822590
See Also
25832591
--------
@@ -2614,6 +2622,12 @@ def dropna(self, how: AnyAll = "any") -> Self:
26142622
Returns
26152623
-------
26162624
Index
2625+
Returns an Index object after removing NA/NaN values.
2626+
2627+
See Also
2628+
--------
2629+
Index.fillna : Fill NA/NaN values with the specified value.
2630+
Index.isna : Detect missing values.
26172631
26182632
Examples
26192633
--------

0 commit comments

Comments
 (0)