Skip to content

Commit

Permalink
CLN: Remove pandas.util | tools/hashing.py
Browse files Browse the repository at this point in the history
Deprecated in v0.20.0

xref pandas-devgh-16223
  • Loading branch information
gfyoung committed Jan 11, 2018
1 parent 982e112 commit de2e5d1
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 51 deletions.
1 change: 1 addition & 0 deletions doc/source/whatsnew/v0.23.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ Removal of prior version deprecations/changes
- The options ``display.line_with`` and ``display.height`` are removed in favor of ``display.width`` and ``display.max_rows`` respectively (:issue:`4391`, :issue:`19107`)
- The ``labels`` attribute of the ``Categorical`` class has been removed in favor of :attribute:`Categorical.codes` (:issue:`7768`)
- The ``flavor`` parameter have been removed from func:`to_sql` method (:issue:`13611`)
- The modules `pandas.tools.hashing` and `pandas.util.hashing` have been removed (:issue:`16223`)

.. _whatsnew_0230.performance:

Expand Down
15 changes: 0 additions & 15 deletions pandas/tests/util/test_hashing.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,18 +290,3 @@ def test_hash_collisions(self):
result = hash_array(np.asarray(L, dtype=object), 'utf8')
tm.assert_numpy_array_equal(
result, np.concatenate([expected1, expected2], axis=0))


def test_deprecation():

with tm.assert_produces_warning(DeprecationWarning,
check_stacklevel=False):
from pandas.tools.hashing import hash_pandas_object
obj = Series(list('abc'))
hash_pandas_object(obj, hash_key='9876543210123456')

with tm.assert_produces_warning(DeprecationWarning,
check_stacklevel=False):
from pandas.tools.hashing import hash_array
obj = np.array([1, 2, 3])
hash_array(obj, hash_key='9876543210123456')
18 changes: 0 additions & 18 deletions pandas/tools/hashing.py

This file was deleted.

18 changes: 0 additions & 18 deletions pandas/util/hashing.py

This file was deleted.

0 comments on commit de2e5d1

Please sign in to comment.