Skip to content

Commit a3702e2

Browse files
authored
DOC: Fix swaplevel docstring (#44740)
1 parent 81b1598 commit a3702e2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pandas/core/frame.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -6790,7 +6790,8 @@ def nsmallest(self, n: int, columns: IndexLabel, keep: str = "first") -> DataFra
67906790
'columns' for column-wise."""
67916791
),
67926792
examples=dedent(
6793-
"""Examples
6793+
"""\
6794+
Examples
67946795
--------
67956796
>>> df = pd.DataFrame(
67966797
... {"Grade": ["A", "B", "A", "C"]},

pandas/core/series.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3897,7 +3897,8 @@ def nsmallest(self, n: int = 5, keep: str = "first") -> Series:
38973897
Whether to copy underlying data."""
38983898
),
38993899
examples=dedent(
3900-
"""Examples
3900+
"""\
3901+
Examples
39013902
--------
39023903
>>> s = pd.Series(
39033904
... ["A", "B", "A", "C"],

0 commit comments

Comments
 (0)