Skip to content

Commit dec4904

Browse files
vvaidyVijay Vaidyanathan
and
Vijay Vaidyanathan
authored
DOC: remove double curly braces in the DataFrame.add_prefix docstring (#54142)
Co-authored-by: Vijay Vaidyanathan <[email protected]>
1 parent f1211e7 commit dec4904

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/generic.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4830,7 +4830,7 @@ def add_prefix(self, prefix: str, axis: Axis | None = None) -> Self:
48304830
----------
48314831
prefix : str
48324832
The string to add before each label.
4833-
axis : {{0 or 'index', 1 or 'columns', None}}, default None
4833+
axis : {0 or 'index', 1 or 'columns', None}, default None
48344834
Axis to add prefix on
48354835
48364836
.. versionadded:: 2.0.0
@@ -4904,7 +4904,7 @@ def add_suffix(self, suffix: str, axis: Axis | None = None) -> Self:
49044904
----------
49054905
suffix : str
49064906
The string to add after each label.
4907-
axis : {{0 or 'index', 1 or 'columns', None}}, default None
4907+
axis : {0 or 'index', 1 or 'columns', None}, default None
49084908
Axis to add suffix on
49094909
49104910
.. versionadded:: 2.0.0

0 commit comments

Comments
 (0)