Skip to content

Commit

Permalink
DOC: fix EX03 errors in docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
tqa236 committed Jan 15, 2024
1 parent 1af1030 commit 05b1869
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
12 changes: 12 additions & 0 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,18 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.io.formats.style.Styler.to_latex \
pandas.read_parquet \
pandas.DataFrame.to_sql \
pandas.read_stata \
pandas.core.resample.Resampler.pipe \
pandas.core.resample.Resampler.interpolate \
pandas.plotting.scatter_matrix \
pandas.pivot \
pandas.merge_asof \
pandas.wide_to_long \
pandas.Index.rename \
pandas.Index.droplevel \
pandas.Index.isin \
pandas.IndexSlice \
pandas.Grouper \
pandas.io.formats.style.Styler.map \
pandas.io.formats.style.Styler.apply_index \
pandas.io.formats.style.Styler.map_index \
Expand Down
3 changes: 2 additions & 1 deletion pandas/core/indexes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2124,7 +2124,8 @@ def droplevel(self, level: IndexLabel = 0):
Examples
--------
>>> mi = pd.MultiIndex.from_arrays(
... [[1, 2], [3, 4], [5, 6]], names=['x', 'y', 'z'])
... [[1, 2], [3, 4], [5, 6]], names=['x', 'y', 'z']
... )
>>> mi
MultiIndex([(1, 3, 5),
(2, 4, 6)],
Expand Down
3 changes: 2 additions & 1 deletion pandas/core/indexes/multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1638,7 +1638,8 @@ def _set_names(self, names, *, level=None, validate: bool = True) -> None:
Examples
--------
>>> mi = pd.MultiIndex.from_arrays(
... [[1, 2], [3, 4], [5, 6]], names=['x', 'y', 'z'])
... [[1, 2], [3, 4], [5, 6]], names=['x', 'y', 'z']
... )
>>> mi
MultiIndex([(1, 3, 5),
(2, 4, 6)],
Expand Down

0 comments on commit 05b1869

Please sign in to comment.