From 7dca65980f0245e4602e42393bdb9e715a6efe93 Mon Sep 17 00:00:00 2001 From: gfyoung Date: Sat, 16 Jul 2016 00:57:28 -0400 Subject: [PATCH] CLN: removed the 'diff' method for Index --- doc/source/whatsnew/v0.19.0.txt | 1 + pandas/indexes/base.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/source/whatsnew/v0.19.0.txt b/doc/source/whatsnew/v0.19.0.txt index 57b0d8895f67b..95d8011f0e10c 100644 --- a/doc/source/whatsnew/v0.19.0.txt +++ b/doc/source/whatsnew/v0.19.0.txt @@ -543,6 +543,7 @@ Removal of prior version deprecations/changes - ``pd.Categorical`` has dropped setting of the ``ordered`` attribute directly in favor of the ``set_ordered`` method (:issue:`13671`) - ``pd.Categorical`` has dropped the ``levels`` attribute in favour of ``categories`` (:issue:`8376`) - ``DataFrame.to_sql()`` has dropped the ``mysql`` option for the ``flavor`` parameter (:issue:`13611`) +- ``pd.Index`` has dropped the ``diff`` method in favour of ``difference`` (:issue:`13669`) - Removal of the legacy time rules (offset aliases), deprecated since 0.17.0 (this has been alias since 0.8.0) (:issue:`13590`) diff --git a/pandas/indexes/base.py b/pandas/indexes/base.py index 567d2a458dafa..850d049ef9f45 100644 --- a/pandas/indexes/base.py +++ b/pandas/indexes/base.py @@ -1965,8 +1965,6 @@ def difference(self, other): return this._shallow_copy(the_diff, name=result_name) - diff = deprecate('diff', difference) - def symmetric_difference(self, other, result_name=None): """ Compute the symmetric difference of two Index objects.