Skip to content

Commit 4c42403

Browse files
replace Appender decorator with doc
1 parent 18b4864 commit 4c42403

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8518,7 +8518,7 @@ def ranker(data):
85188518

85198519
return ranker(data)
85208520

8521-
@Appender(_shared_docs["compare"] % _shared_doc_kwargs)
8521+
@doc(_shared_docs["compare"], klass=_shared_doc_kwargs["klass"])
85228522
def compare(
85238523
self,
85248524
other,

pandas/core/shared_docs.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@
4747
_shared_docs[
4848
"compare"
4949
] = """
50-
Compare to another %(klass)s and show the differences.
50+
Compare to another {klass} and show the differences.
5151
5252
.. versionadded:: 1.1.0
5353
5454
Parameters
5555
----------
56-
other : %(klass)s
56+
other : {klass}
5757
Object to compare with.
5858
59-
align_axis : {0 or 'index', 1 or 'columns'}, default 1
59+
align_axis : {{0 or 'index', 1 or 'columns'}}, default 1
6060
Determine which axis to align the comparison on.
6161
6262
* 0, or 'index' : Resulting differences are stacked vertically

0 commit comments

Comments
 (0)