Skip to content

Commit 9df80e2

Browse files
indent correction
1 parent 065bec5 commit 9df80e2

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

pandas/core/frame.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5626,25 +5626,25 @@ def set_axis(
56265626
--------
56275627
DataFrame.rename_axis : Alter the name of the index or columns.
56285628

5629-
Examples
5630-
--------
5631-
>>> df = pd.DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]})
5629+
Examples
5630+
--------
5631+
>>> df = pd.DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]})
56325632

5633-
Change the row labels.
5633+
Change the row labels.
56345634

5635-
>>> df.set_axis(["a", "b", "c"], axis="index")
5636-
A B
5637-
a 1 4
5638-
b 2 5
5639-
c 3 6
5635+
>>> df.set_axis(["a", "b", "c"], axis="index")
5636+
A B
5637+
a 1 4
5638+
b 2 5
5639+
c 3 6
56405640

5641-
Change the column labels.
5641+
Change the column labels.
56425642

5643-
>>> df.set_axis(["I", "II"], axis="columns")
5644-
I II
5645-
0 1 4
5646-
1 2 5
5647-
2 3 6
5643+
>>> df.set_axis(["I", "II"], axis="columns")
5644+
I II
5645+
0 1 4
5646+
1 2 5
5647+
2 3 6
56485648
"""
56495649
return super().set_axis(labels, axis=axis, copy=copy)
56505650

0 commit comments

Comments
 (0)