Skip to content

Commit 07e8e54

Browse files
DOC: fix SA01 for pandas.MultiIndex.truncate (#58837)
1 parent 35219f1 commit 07e8e54

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
9090
-i "pandas.MultiIndex.set_levels RT03,SA01" \
9191
-i "pandas.MultiIndex.sortlevel PR07,SA01" \
9292
-i "pandas.MultiIndex.to_frame RT03" \
93-
-i "pandas.MultiIndex.truncate SA01" \
9493
-i "pandas.NA SA01" \
9594
-i "pandas.NaT SA01" \
9695
-i "pandas.NamedAgg SA01" \

pandas/core/indexes/multi.py

+5
Original file line numberDiff line numberDiff line change
@@ -3611,6 +3611,11 @@ def truncate(self, before=None, after=None) -> MultiIndex:
36113611
MultiIndex
36123612
The truncated MultiIndex.
36133613
3614+
See Also
3615+
--------
3616+
DataFrame.truncate : Truncate a DataFrame before and after some index values.
3617+
Series.truncate : Truncate a Series before and after some index values.
3618+
36143619
Examples
36153620
--------
36163621
>>> mi = pd.MultiIndex.from_arrays([["a", "b", "c"], ["x", "y", "z"]])

0 commit comments

Comments
 (0)