Skip to content

Commit c6b12cd

Browse files
committed
pandas._join -> pandas.libs.join
1 parent 1915b6a commit c6b12cd

File tree

12 files changed

+18
-25
lines changed

12 files changed

+18
-25
lines changed

doc/source/whatsnew/v0.20.0.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ If indicated, a deprecation warning will be issued if you reference that module.
471471
"pandas.lib", "pandas.libs.lib", "X"
472472
"pandas.hashtable", "pandas.libs.hashtable", ""
473473
"pandas._window", "pandas.core.libwindow", ""
474+
"pandas._join", "pandas.libs.join", ""
474475

475476

476477
.. _whatsnew_0200.api_breaking.groupby_describe:

pandas/indexes/base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
import operator
44

55
import numpy as np
6-
from pandas.libs import index as _index, tslib, algos as _algos
7-
import pandas.libs.lib as lib
8-
import pandas._join as _join
6+
from pandas.libs import (lib, index as _index, tslib,
7+
algos as _algos, join as _join)
98
from pandas.libs.lib import Timestamp, Timedelta, is_datetime_array
109

1110
from pandas.compat import range, u

pandas/indexes/numeric.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import numpy as np
2-
import pandas.libs.lib as lib
3-
import pandas._join as _join
4-
from pandas.libs import index as _index, algos as _algos
2+
from pandas.libs import (lib, index as _index,
3+
algos as _algos, join as _join)
54

65
from pandas.types.common import (is_dtype_equal, pandas_dtype,
76
is_float_dtype, is_object_dtype,

pandas/src/join.pyx renamed to pandas/libs/join.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ cdef double nan = NaN
3535
from pandas.libs.algos import groupsort_indexer, ensure_platform_int
3636
from pandas.core.algorithms import take_nd
3737

38-
include "joins_func_helper.pxi"
38+
include "join_func_helper.pxi"
3939

4040

4141
def inner_join(ndarray[int64_t] left, ndarray[int64_t] right,

pandas/src/joins_func_helper.pxi.in renamed to pandas/libs/join_func_helper.pxi.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on_dtypes = ['uint8_t', 'uint16_t', 'uint32_t', 'uint64_t',
2323
}}
2424

2525

26-
from libs.hashtable cimport *
26+
from hashtable cimport *
2727

2828
{{for table_type, by_dtype in by_dtypes}}
2929
{{for on_dtype in on_dtypes}}
File renamed without changes.

pandas/tests/test_join.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import numpy as np
44
from pandas import Index
55

6-
import pandas._join as _join
6+
from pandas.libs import join as _join
77
import pandas.util.testing as tm
88
from pandas.util.testing import assert_almost_equal
99

pandas/tests/tools/test_join.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from pandas.util.testing import assert_frame_equal
1010
from pandas import DataFrame, MultiIndex, Series, Index, merge, concat
1111

12-
import pandas._join as _join
12+
from pandas.libs import join as _join
1313
import pandas.util.testing as tm
1414
from pandas.tests.tools.test_merge import get_test_data, N, NGROUPS
1515

pandas/tools/merge.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@
3737
from pandas.core.sorting import is_int64_overflow_possible
3838
import pandas.core.algorithms as algos
3939
import pandas.core.common as com
40-
41-
import pandas._join as _join
42-
from pandas.libs import hashtable as _hash
40+
from pandas.libs import hashtable as _hash, join as _join
4341

4442

4543
# back-compat of pseudo-public API

pandas/tseries/index.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@
4444
import pandas.tseries.offsets as offsets
4545
import pandas.tseries.tools as tools
4646

47+
from pandas.libs import (lib, index as _index, tslib,
48+
algos as _algos, join as _join)
4749
from pandas.libs.lib import Timestamp
48-
from pandas.libs import index as _index, tslib, algos as _algos
49-
import pandas.libs.lib as lib
5050
import pandas._period as period
51-
import pandas._join as _join
5251

5352

5453
def _utc():

pandas/tseries/tdi.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@
3030
from pandas.tseries.timedeltas import (to_timedelta,
3131
_coerce_scalar_to_timedelta_type)
3232
from pandas.tseries.offsets import Tick, DateOffset
33-
34-
import pandas.libs.lib as lib
35-
from pandas.libs import index as _index, tslib
36-
import pandas._join as _join
33+
from pandas.libs import lib, index as _index, tslib, join as _join
3734

3835
Timedelta = tslib.Timedelta
3936

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def is_platform_mac():
112112
_pxi_dep_template = {
113113
'algos': ['src/algos_common_helper.pxi.in', 'src/algos_groupby_helper.pxi.in',
114114
'src/algos_take_helper.pxi.in', 'src/algos_rank_helper.pxi.in'],
115-
'join': ['src/join_helper.pxi.in', 'src/joins_func_helper.pxi.in'],
115+
'join': ['libs/join_helper.pxi.in', 'libs/join_func_helper.pxi.in'],
116116
'hashtable': ['src/hashtable_class_helper.pxi.in',
117117
'src/hashtable_func_helper.pxi.in'],
118118
'index': ['src/index_class_helper.pxi.in'],
@@ -331,8 +331,8 @@ class CheckSDist(sdist_class):
331331
'pandas/libs/tslib.pyx',
332332
'pandas/libs/index.pyx',
333333
'pandas/libs/algos.pyx',
334+
'pandas/libs/join.pyx',
334335
'pandas/core/window.pyx',
335-
'pandas/join.pyx',
336336
'pandas/src/period.pyx',
337337
'pandas/sparse/sparse.pyx',
338338
'pandas/util/testing.pyx',
@@ -496,9 +496,9 @@ def pxd(name):
496496
'libs.algos': {'pyxfile': 'libs/algos',
497497
'pxdfiles': ['src/util', 'libs/hashtable'],
498498
'depends': _pxi_dep['algos']},
499-
'_join': {'pyxfile': 'src/join',
500-
'pxdfiles': ['src/util', 'libs/hashtable'],
501-
'depends': _pxi_dep['join']},
499+
'libs.join': {'pyxfile': 'libs/join',
500+
'pxdfiles': ['src/util', 'libs/hashtable'],
501+
'depends': _pxi_dep['join']},
502502
'core.libwindow': {'pyxfile': 'core/window',
503503
'pxdfiles': ['src/skiplist', 'src/util'],
504504
'depends': ['pandas/src/skiplist.pyx',

0 commit comments

Comments
 (0)