Skip to content

Commit 8c54930

Browse files
committed
DOC: fix EX03 errors in docstrings
1 parent c778746 commit 8c54930

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

ci/code_checks.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
105105
pandas.Index.rename \
106106
pandas.Index.droplevel \
107107
pandas.Index.isin \
108-
pandas.MultiIndex.names \
109-
pandas.MultiIndex.droplevel \
108+
pandas.CategoricalIndex.set_categories \
110109
pandas.IndexSlice \
111110
pandas.Grouper \
112111
pandas.io.formats.style.Styler.map \

pandas/core/indexes/base.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2124,7 +2124,8 @@ def droplevel(self, level: IndexLabel = 0):
21242124
Examples
21252125
--------
21262126
>>> mi = pd.MultiIndex.from_arrays(
2127-
... [[1, 2], [3, 4], [5, 6]], names=['x', 'y', 'z'])
2127+
... [[1, 2], [3, 4], [5, 6]], names=['x', 'y', 'z']
2128+
... )
21282129
>>> mi
21292130
MultiIndex([(1, 3, 5),
21302131
(2, 4, 6)],

pandas/core/indexes/multi.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1638,7 +1638,8 @@ def _set_names(self, names, *, level=None, validate: bool = True) -> None:
16381638
Examples
16391639
--------
16401640
>>> mi = pd.MultiIndex.from_arrays(
1641-
... [[1, 2], [3, 4], [5, 6]], names=['x', 'y', 'z'])
1641+
... [[1, 2], [3, 4], [5, 6]], names=['x', 'y', 'z']
1642+
... )
16421643
>>> mi
16431644
MultiIndex([(1, 3, 5),
16441645
(2, 4, 6)],

0 commit comments

Comments
 (0)