Skip to content

Commit e379692

Browse files
authored
DOC: fix EX03 errors in docstrings (#56855)
1 parent 773d78d commit e379692

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

ci/code_checks.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
8888
pandas.io.formats.style.Styler.background_gradient \
8989
pandas.io.formats.style.Styler.text_gradient \
9090
pandas.DataFrame.plot.hexbin \
91-
pandas.DataFrame.plot.line \
91+
pandas.DataFrame.plot.line
9292
RET=$(($RET + $?)) ; echo $MSG "DONE"
9393

9494
fi

pandas/core/arrays/datetimes.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,10 @@ class DatetimeArray(dtl.TimelikeOps, dtl.DatelikeOps): # type: ignore[misc]
213213
Examples
214214
--------
215215
>>> pd.arrays.DatetimeArray._from_sequence(
216-
... pd.DatetimeIndex(['2023-01-01', '2023-01-02'], freq='D'))
216+
... pd.DatetimeIndex(
217+
... ["2023-01-01", "2023-01-02"], freq="D"
218+
... )
219+
... )
217220
<DatetimeArray>
218221
['2023-01-01 00:00:00', '2023-01-02 00:00:00']
219222
Length: 2, dtype: datetime64[ns]

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)