Skip to content

Commit 05b1869

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

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

ci/code_checks.sh

+12
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,18 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
8080
pandas.io.formats.style.Styler.to_latex \
8181
pandas.read_parquet \
8282
pandas.DataFrame.to_sql \
83+
pandas.read_stata \
84+
pandas.core.resample.Resampler.pipe \
85+
pandas.core.resample.Resampler.interpolate \
86+
pandas.plotting.scatter_matrix \
87+
pandas.pivot \
88+
pandas.merge_asof \
89+
pandas.wide_to_long \
90+
pandas.Index.rename \
91+
pandas.Index.droplevel \
92+
pandas.Index.isin \
93+
pandas.IndexSlice \
94+
pandas.Grouper \
8395
pandas.io.formats.style.Styler.map \
8496
pandas.io.formats.style.Styler.apply_index \
8597
pandas.io.formats.style.Styler.map_index \

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)