@@ -642,8 +642,8 @@ def test_join_inner(self):
642
642
res2 = self .index .intersection (other_mono )
643
643
self .assert_index_equal (res , res2 )
644
644
645
- elidx = np .array ([1 , 6 ], dtype = np .int64 )
646
- eridx = np .array ([1 , 4 ], dtype = np .int64 )
645
+ elidx = np .array ([1 , 6 ], dtype = np .intp )
646
+ eridx = np .array ([1 , 4 ], dtype = np .intp )
647
647
tm .assertIsInstance (res , Int64Index )
648
648
self .assert_index_equal (res , eres )
649
649
tm .assert_numpy_array_equal (lidx , elidx )
@@ -680,8 +680,8 @@ def test_join_left(self):
680
680
idx2 = Index ([1 , 2 , 5 , 7 , 9 ])
681
681
res , lidx , ridx = idx2 .join (idx , how = 'left' , return_indexers = True )
682
682
eres = Index ([1 , 1 , 2 , 5 , 7 , 9 ]) # 1 is in idx2, so it should be x2
683
- eridx = np .array ([0 , 1 , 2 , 3 , - 1 , - 1 ], dtype = np .int64 )
684
- elidx = np .array ([0 , 0 , 1 , 2 , 3 , 4 ], dtype = np .int64 )
683
+ eridx = np .array ([0 , 1 , 2 , 3 , - 1 , - 1 ], dtype = np .intp )
684
+ elidx = np .array ([0 , 0 , 1 , 2 , 3 , 4 ], dtype = np .intp )
685
685
self .assert_index_equal (res , eres )
686
686
tm .assert_numpy_array_equal (lidx , elidx )
687
687
tm .assert_numpy_array_equal (ridx , eridx )
@@ -705,7 +705,7 @@ def test_join_right(self):
705
705
res , lidx , ridx = self .index .join (other_mono , how = 'right' ,
706
706
return_indexers = True )
707
707
eres = other_mono
708
- elidx = np .array ([- 1 , 1 , - 1 , - 1 , 6 , - 1 ], dtype = np .int64 )
708
+ elidx = np .array ([- 1 , 1 , - 1 , - 1 , 6 , - 1 ], dtype = np .intp )
709
709
tm .assertIsInstance (other , Int64Index )
710
710
self .assert_index_equal (res , eres )
711
711
tm .assert_numpy_array_equal (lidx , elidx )
@@ -716,8 +716,8 @@ def test_join_right(self):
716
716
idx2 = Index ([1 , 2 , 5 , 7 , 9 ])
717
717
res , lidx , ridx = idx .join (idx2 , how = 'right' , return_indexers = True )
718
718
eres = Index ([1 , 1 , 2 , 5 , 7 , 9 ]) # 1 is in idx2, so it should be x2
719
- elidx = np .array ([0 , 1 , 2 , 3 , - 1 , - 1 ], dtype = np .int64 )
720
- eridx = np .array ([0 , 0 , 1 , 2 , 3 , 4 ], dtype = np .int64 )
719
+ elidx = np .array ([0 , 1 , 2 , 3 , - 1 , - 1 ], dtype = np .intp )
720
+ eridx = np .array ([0 , 0 , 1 , 2 , 3 , 4 ], dtype = np .intp )
721
721
self .assert_index_equal (res , eres )
722
722
tm .assert_numpy_array_equal (lidx , elidx )
723
723
tm .assert_numpy_array_equal (ridx , eridx )
0 commit comments