Skip to content

Commit afa606f

Browse files
committed
pandas._hash -> pandas.tools.libhash
1 parent acfdb1d commit afa606f

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

doc/source/whatsnew/v0.20.0.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ If indicated, a deprecation warning will be issued if you reference that module.
464464
"pandas.msgpack", "pandas.io.msgpack", ""
465465
"pandas._testing", "pandas.util.libtesting", ""
466466
"pandas._sparse", "pandas.sparse.libsparse", ""
467+
"pandas._hash", "pandas.tools.libhash", ""
467468

468469

469470
.. _whatsnew_0200.api_breaking.groupby_describe:

pandas/tools/hashing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
import itertools
55

66
import numpy as np
7-
from pandas import _hash, Series, factorize, Categorical, Index, MultiIndex
7+
from pandas import Series, factorize, Categorical, Index, MultiIndex
8+
from pandas.tools import libhashing as _hash
89
from pandas.lib import is_bool_array
910
from pandas.types.generic import ABCIndexClass, ABCSeries, ABCDataFrame
1011
from pandas.types.common import (is_categorical_dtype, is_numeric_dtype,
File renamed without changes.

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ class CheckSDist(sdist_class):
337337
'pandas/src/period.pyx',
338338
'pandas/sparse/sparse.pyx',
339339
'pandas/util/testing.pyx',
340-
'pandas/src/hash.pyx',
340+
'pandas/tools/hash.pyx',
341341
'pandas/io/sas/sas.pyx']
342342

343343
def initialize_options(self):
@@ -514,8 +514,8 @@ def pxd(name):
514514
_pxi_dep['sparse'])},
515515
'util.libtesting': {'pyxfile': 'util/testing',
516516
'depends': ['pandas/util/testing.pyx']},
517-
'_hash': {'pyxfile': 'src/hash',
518-
'depends': [srcpath('hash', suffix='.pyx')]},
517+
'tools.libhashing': {'pyxfile': 'tools/hashing',
518+
'depends': ['pandas/tools/hashing.pyx']},
519519
'io.sas.libsas': {'pyxfile': 'io/sas/sas'},
520520
}
521521

0 commit comments

Comments
 (0)