Skip to content

Commit 20b6dbd

Browse files
committed
rename libs -> _libs
1 parent 00a7751 commit 20b6dbd

File tree

192 files changed

+267
-265
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+267
-265
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tseries: pandas/libs/lib.pyx pandas/libs/tslib.pyx pandas/libs/hashtable.pyx
1+
tseries: pandas/_libs/lib.pyx pandas/_libs/tslib.pyx pandas/_libs/hashtable.pyx
22
python setup.py build_ext --inplace
33

44
.PHONY : develop build clean clean_pyc tseries doc

asv_bench/benchmarks/pandas_vb_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
np.random.seed(1234)
1919

2020
# try em until it works!
21-
for imp in ['pandas_tseries', 'pandas.lib', 'pandas.libs.lib']:
21+
for imp in ['pandas_tseries', 'pandas.lib', 'pandas._libs.lib']:
2222
try:
2323
lib = import_module(imp)
2424
break

pandas/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from pandas.compat.numpy import *
2424

2525
try:
26-
from pandas.libs import (hashtable as _hashtable,
26+
from pandas._libs import (hashtable as _hashtable,
2727
lib as _lib,
2828
tslib as _tslib)
2929
except ImportError as e: # pragma: no cover
@@ -62,8 +62,8 @@
6262

6363
json = _DeprecatedModule(deprmod='pandas.json', deprmodto='pandas.io.json.libjson')
6464
parser = _DeprecatedModule(deprmod='pandas.parser', deprmodto='pandas.io.libparsers')
65-
lib = _DeprecatedModule(deprmod='pandas.lib', deprmodto='pandas.libs.lib')
66-
tslib = _DeprecatedModule(deprmod='pandas.tslib', deprmodto='pandas.libs.tslib')
65+
lib = _DeprecatedModule(deprmod='pandas.lib', deprmodto='pandas._libs.lib')
66+
tslib = _DeprecatedModule(deprmod='pandas.tslib', deprmodto='pandas._libs.tslib')
6767

6868
# use the closest tagged version if possible
6969
from ._version import get_versions
File renamed without changes.

pandas/libs/algos.pyx renamed to pandas/_libs/algos.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ from util cimport numeric, get_nat
4646

4747
cimport lib
4848
from lib cimport is_null_datetimelike
49-
from pandas.libs import lib
49+
from pandas._libs import lib
5050

5151
cdef int64_t iNaT = get_nat()
5252

pandas/libs/algos_common_helper.pxi.in renamed to pandas/_libs/algos_common_helper.pxi.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ def arrmap_{{name}}(ndarray[{{c_type}}] index, object func):
433433

434434
cdef ndarray[object] result = np.empty(length, dtype=np.object_)
435435

436-
from pandas.libs.lib import maybe_convert_objects
436+
from pandas._libs.lib import maybe_convert_objects
437437

438438
for i in range(length):
439439
result[i] = func(index[i])
File renamed without changes.

0 commit comments

Comments
 (0)