Skip to content

Commit ca6f547

Browse files
committed
fixed a linting error and docstrings validation
1 parent 0ef638f commit ca6f547

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

pandas/core/series.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,17 +1412,20 @@ def to_string(
14121412

14131413
@doc(
14141414
klass=_shared_doc_kwargs["klass"],
1415-
examples="""Examples
1416-
--------
1417-
>>> s = pd.Series(["elk", "pig", "dog", "quetzal"], name="animal")
1418-
>>> print(s.to_markdown())
1419-
| | animal |
1420-
|---:|:---------|
1421-
| 0 | elk |
1422-
| 1 | pig |
1423-
| 2 | dog |
1424-
| 3 | quetzal |
1425-
""",
1415+
examples=dedent(
1416+
"""
1417+
Examples
1418+
--------
1419+
>>> s = pd.Series(["elk", "pig", "dog", "quetzal"], name="animal")
1420+
>>> print(s.to_markdown())
1421+
| | animal |
1422+
|---:|:---------|
1423+
| 0 | elk |
1424+
| 1 | pig |
1425+
| 2 | dog |
1426+
| 3 | quetzal |
1427+
"""
1428+
),
14261429
)
14271430
def to_markdown(
14281431
self, buf: Optional[IO[str]] = None, mode: Optional[str] = None, **kwargs

0 commit comments

Comments
 (0)