Skip to content

Commit 223f0f8

Browse files
committed
fixed a doc string
1 parent 712ca0d commit 223f0f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/generic.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -545,16 +545,16 @@ def set_axis(self, labels, axis: Axis = 0, inplace: bool = False):
545545
The axis to update. The value 0 identifies the rows%(axis_description_sub)s.
546546
547547
inplace : bool, default False
548-
Whether to return a new {klass} instance.
548+
Whether to return a new %(klass)s instance.
549549
550550
Returns
551551
-------
552-
renamed : {klass} or None
553-
An object of type {klass} if inplace=False, None otherwise.
552+
renamed : %(klass)s or None
553+
An object of type %(klass)s if inplace=False, None otherwise.
554554
555555
See Also
556556
--------
557-
{klass}.rename_axis : Alter the name of the index%(see_also_sub)s.
557+
%(klass)s.rename_axis : Alter the name of the index%(see_also_sub)s.
558558
"""
559559
if inplace:
560560
setattr(self, self._get_axis_name(axis), labels)

0 commit comments

Comments
 (0)