Skip to content

Commit 5ec12c1

Browse files
committed
fixed a doc string
1 parent b7b2d38 commit 5ec12c1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/generic.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -544,16 +544,16 @@ def set_axis(self, labels, axis: Axis = 0, inplace: bool = False):
544544
The axis to update. The value 0 identifies the rows%(axis_description_sub)s.
545545
546546
inplace : bool, default False
547-
Whether to return a new {klass} instance.
547+
Whether to return a new %(klass)s instance.
548548
549549
Returns
550550
-------
551-
renamed : {klass} or None
552-
An object of type {klass} if inplace=False, None otherwise.
551+
renamed : %(klass)s or None
552+
An object of type %(klass)s if inplace=False, None otherwise.
553553
554554
See Also
555555
--------
556-
{klass}.rename_axis : Alter the name of the index%(see_also_sub)s.
556+
%(klass)s.rename_axis : Alter the name of the index%(see_also_sub)s.
557557
"""
558558
if inplace:
559559
setattr(self, self._get_axis_name(axis), labels)

0 commit comments

Comments
 (0)