Skip to content

Commit 8f5e162

Browse files
committed
Using _shared_doc_kwargs for versionadded
1 parent df02b00 commit 8f5e162

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

pandas/core/frame.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@
105105
axes_single_arg="{0 or 'index', 1 or 'columns'}",
106106
optional_by="""
107107
by : str or list of str
108-
Name or list of names which refer to the axis items.""")
108+
Name or list of names which refer to the axis items.""",
109+
versionadded_to_excel='')
109110

110111
_numeric_only_doc = """numeric_only : boolean, default None
111112
Include only float, int, boolean data. If None, will attempt to use

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ def __setstate__(self, state):
10191019
_shared_docs['to_excel'] = """
10201020
Write %(klass)s to a excel sheet
10211021
1022-
.. versionadded:: 0.20.0
1022+
%(versionadded_to_excel)s
10231023
10241024
Parameters
10251025
----------

pandas/core/series.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@
8080
inplace="""inplace : boolean, default False
8181
If True, performs operation inplace and returns None.""",
8282
unique='np.ndarray', duplicated='Series',
83-
optional_by='')
83+
optional_by='',
84+
versionadded_to_excel='.. versionadded:: 0.20.0')
8485

8586

8687
def _coerce_method(converter):

0 commit comments

Comments
 (0)