Skip to content

Commit 7dca659

Browse files
committed
CLN: removed the 'diff' method for Index
1 parent 8acfad3 commit 7dca659

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

doc/source/whatsnew/v0.19.0.txt

+1
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ Removal of prior version deprecations/changes
543543
- ``pd.Categorical`` has dropped setting of the ``ordered`` attribute directly in favor of the ``set_ordered`` method (:issue:`13671`)
544544
- ``pd.Categorical`` has dropped the ``levels`` attribute in favour of ``categories`` (:issue:`8376`)
545545
- ``DataFrame.to_sql()`` has dropped the ``mysql`` option for the ``flavor`` parameter (:issue:`13611`)
546+
- ``pd.Index`` has dropped the ``diff`` method in favour of ``difference`` (:issue:`13669`)
546547

547548
- Removal of the legacy time rules (offset aliases), deprecated since 0.17.0 (this has been alias since 0.8.0) (:issue:`13590`)
548549

pandas/indexes/base.py

-2
Original file line numberDiff line numberDiff line change
@@ -1965,8 +1965,6 @@ def difference(self, other):
19651965

19661966
return this._shallow_copy(the_diff, name=result_name)
19671967

1968-
diff = deprecate('diff', difference)
1969-
19701968
def symmetric_difference(self, other, result_name=None):
19711969
"""
19721970
Compute the symmetric difference of two Index objects.

0 commit comments

Comments
 (0)