Skip to content

Commit e8110e8

Browse files
committed
DOC: fix EX03 errors in docstrings
1 parent 1af1030 commit e8110e8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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)