@@ -401,23 +401,23 @@ def test_reindex_dtype(self):
401401 exp = CategoricalIndex (['a' , 'a' , 'c' ], categories = ['a' , 'c' ])
402402 tm .assert_index_equal (res , exp , exact = True )
403403 tm .assert_numpy_array_equal (indexer ,
404- np .array ([0 , 3 , 2 ], dtype = np .int64 ))
404+ np .array ([0 , 3 , 2 ], dtype = np .intp ))
405405
406406 c = CategoricalIndex (['a' , 'b' , 'c' , 'a' ],
407407 categories = ['a' , 'b' , 'c' , 'd' ])
408408 res , indexer = c .reindex (['a' , 'c' ])
409409 exp = Index (['a' , 'a' , 'c' ], dtype = 'object' )
410410 tm .assert_index_equal (res , exp , exact = True )
411411 tm .assert_numpy_array_equal (indexer ,
412- np .array ([0 , 3 , 2 ], dtype = np .int64 ))
412+ np .array ([0 , 3 , 2 ], dtype = np .intp ))
413413
414414 c = CategoricalIndex (['a' , 'b' , 'c' , 'a' ],
415415 categories = ['a' , 'b' , 'c' , 'd' ])
416416 res , indexer = c .reindex (Categorical (['a' , 'c' ]))
417417 exp = CategoricalIndex (['a' , 'a' , 'c' ], categories = ['a' , 'c' ])
418418 tm .assert_index_equal (res , exp , exact = True )
419419 tm .assert_numpy_array_equal (indexer ,
420- np .array ([0 , 3 , 2 ], dtype = np .int64 ))
420+ np .array ([0 , 3 , 2 ], dtype = np .intp ))
421421
422422 def test_duplicates (self ):
423423
0 commit comments