Skip to content

Commit 1954a83

Browse files
gfyoungjreback
authored andcommitted
CLN: Remove pandas.util | tools/hashing.py (#19181)
Deprecated in v0.20.0 xref gh-16223
1 parent a31e739 commit 1954a83

File tree

4 files changed

+1
-51
lines changed

4 files changed

+1
-51
lines changed

doc/source/whatsnew/v0.23.0.txt

+1
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ Removal of prior version deprecations/changes
317317
- The options ``display.line_with`` and ``display.height`` are removed in favor of ``display.width`` and ``display.max_rows`` respectively (:issue:`4391`, :issue:`19107`)
318318
- The ``labels`` attribute of the ``Categorical`` class has been removed in favor of :attribute:`Categorical.codes` (:issue:`7768`)
319319
- The ``flavor`` parameter have been removed from func:`to_sql` method (:issue:`13611`)
320+
- The modules `pandas.tools.hashing` and `pandas.util.hashing` have been removed (:issue:`16223`)
320321

321322
.. _whatsnew_0230.performance:
322323

pandas/tests/util/test_hashing.py

-15
Original file line numberDiff line numberDiff line change
@@ -290,18 +290,3 @@ def test_hash_collisions(self):
290290
result = hash_array(np.asarray(L, dtype=object), 'utf8')
291291
tm.assert_numpy_array_equal(
292292
result, np.concatenate([expected1, expected2], axis=0))
293-
294-
295-
def test_deprecation():
296-
297-
with tm.assert_produces_warning(DeprecationWarning,
298-
check_stacklevel=False):
299-
from pandas.tools.hashing import hash_pandas_object
300-
obj = Series(list('abc'))
301-
hash_pandas_object(obj, hash_key='9876543210123456')
302-
303-
with tm.assert_produces_warning(DeprecationWarning,
304-
check_stacklevel=False):
305-
from pandas.tools.hashing import hash_array
306-
obj = np.array([1, 2, 3])
307-
hash_array(obj, hash_key='9876543210123456')

pandas/tools/hashing.py

-18
This file was deleted.

pandas/util/hashing.py

-18
This file was deleted.

0 commit comments

Comments
 (0)