Skip to content

Commit 35219f1

Browse files
DOC: fix SA01 for pandas.MultiIndex.set_codes (#58836)
1 parent 5df0581 commit 35219f1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
8787
-i "pandas.MultiIndex.nlevels SA01" \
8888
-i "pandas.MultiIndex.remove_unused_levels RT03,SA01" \
8989
-i "pandas.MultiIndex.reorder_levels RT03,SA01" \
90-
-i "pandas.MultiIndex.set_codes SA01" \
9190
-i "pandas.MultiIndex.set_levels RT03,SA01" \
9291
-i "pandas.MultiIndex.sortlevel PR07,SA01" \
9392
-i "pandas.MultiIndex.to_frame RT03" \

pandas/core/indexes/multi.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,6 +1149,12 @@ def set_codes(
11491149
new index (of same type and class...etc) or None
11501150
The same type as the caller or None if ``inplace=True``.
11511151
1152+
See Also
1153+
--------
1154+
MultiIndex.set_levels : Set new levels on MultiIndex.
1155+
MultiIndex.codes : Get the codes of the levels in the MultiIndex.
1156+
MultiIndex.levels : Get the levels of the MultiIndex.
1157+
11521158
Examples
11531159
--------
11541160
>>> idx = pd.MultiIndex.from_tuples(

0 commit comments

Comments
 (0)