Skip to content

Commit

Permalink
replace Appender decorator with doc
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmspeechmatics committed Nov 2, 2020
1 parent 821f90c commit 94b6194
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -8516,7 +8516,7 @@ def ranker(data):

return ranker(data)

@Appender(_shared_docs["compare"] % _shared_doc_kwargs)
@doc(_shared_docs["compare"], klass=_shared_doc_kwargs["klass"])
def compare(
self,
other,
Expand Down
6 changes: 3 additions & 3 deletions pandas/core/shared_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@
_shared_docs[
"compare"
] = """
Compare to another %(klass)s and show the differences.
Compare to another {klass} and show the differences.
.. versionadded:: 1.1.0
Parameters
----------
other : %(klass)s
other : {klass}
Object to compare with.
align_axis : {0 or 'index', 1 or 'columns'}, default 1
align_axis : {{0 or 'index', 1 or 'columns'}}, default 1
Determine which axis to align the comparison on.
* 0, or 'index' : Resulting differences are stacked vertically
Expand Down

0 comments on commit 94b6194

Please sign in to comment.