Skip to content

Commit c422e2c

Browse files
replace Appender decorator with doc
1 parent c583144 commit c422e2c

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
@@ -8516,7 +8516,7 @@ def ranker(data):
85168516

85178517
return ranker(data)
85188518

8519-
@Appender(_shared_docs["compare"] % _shared_doc_kwargs)
8519+
@doc(_shared_docs["compare"], klass=_shared_doc_kwargs["klass"])
85208520
def compare(
85218521
self,
85228522
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)