Skip to content

Commit 0397541

Browse files
committed
fixed a doc string
1 parent 1dbb50e commit 0397541

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
@@ -542,16 +542,16 @@ def set_axis(self, labels, axis: Axis = 0, inplace: bool = False):
542542
The axis to update. The value 0 identifies the rows%(axis_description_sub)s.
543543
544544
inplace : bool, default False
545-
Whether to return a new {klass} instance.
545+
Whether to return a new %(klass)s instance.
546546
547547
Returns
548548
-------
549-
renamed : {klass} or None
550-
An object of type {klass} if inplace=False, None otherwise.
549+
renamed : %(klass)s or None
550+
An object of type %(klass)s if inplace=False, None otherwise.
551551
552552
See Also
553553
--------
554-
{klass}.rename_axis : Alter the name of the index%(see_also_sub)s.
554+
%(klass)s.rename_axis : Alter the name of the index%(see_also_sub)s.
555555
"""
556556
if inplace:
557557
setattr(self, self._get_axis_name(axis), labels)

0 commit comments

Comments
 (0)