Skip to content

Commit 634e95d

Browse files
gfyoungjreback
authored andcommitted
CLN: removed the 'diff' method for Index
Deprecated all the way back in `0.15.0` <a href="https://github.com/pydata/pandas/pull/8227">here</a>. Author: gfyoung <[email protected]> Closes #13669 from gfyoung/remove-index-diff and squashes the following commits: 7dca659 [gfyoung] CLN: removed the 'diff' method for Index
1 parent 4962131 commit 634e95d

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
@@ -602,6 +602,7 @@ Removal of prior version deprecations/changes
602602
- ``pd.Categorical`` has dropped setting of the ``ordered`` attribute directly in favor of the ``set_ordered`` method (:issue:`13671`)
603603
- ``pd.Categorical`` has dropped the ``levels`` attribute in favour of ``categories`` (:issue:`8376`)
604604
- ``DataFrame.to_sql()`` has dropped the ``mysql`` option for the ``flavor`` parameter (:issue:`13611`)
605+
- ``pd.Index`` has dropped the ``diff`` method in favour of ``difference`` (:issue:`13669`)
605606

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

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)