@@ -331,25 +331,25 @@ def test_factorize_na_sentinel(self, sort, na_sentinel, data, uniques):
331
331
(
332
332
["a" , None , "b" , "a" ],
333
333
True ,
334
- np .array ([0 , - 1 , 1 , 0 ], dtype = np .int64 ),
334
+ np .array ([0 , - 1 , 1 , 0 ], dtype = np .dtype ( "intp" ) ),
335
335
np .array (["a" , "b" ], dtype = object ),
336
336
),
337
337
(
338
338
["a" , np .nan , "b" , "a" ],
339
339
True ,
340
- np .array ([0 , - 1 , 1 , 0 ], dtype = np .int64 ),
340
+ np .array ([0 , - 1 , 1 , 0 ], dtype = np .dtype ( "intp" ) ),
341
341
np .array (["a" , "b" ], dtype = object ),
342
342
),
343
343
(
344
344
["a" , None , "b" , "a" ],
345
345
False ,
346
- np .array ([0 , 2 , 1 , 0 ], dtype = np .int64 ),
346
+ np .array ([0 , 2 , 1 , 0 ], dtype = np .dtype ( "intp" ) ),
347
347
np .array (["a" , "b" , np .nan ], dtype = object ),
348
348
),
349
349
(
350
350
["a" , np .nan , "b" , "a" ],
351
351
False ,
352
- np .array ([0 , 2 , 1 , 0 ], dtype = np .int64 ),
352
+ np .array ([0 , 2 , 1 , 0 ], dtype = np .dtype ( "intp" ) ),
353
353
np .array (["a" , "b" , np .nan ], dtype = object ),
354
354
),
355
355
],
@@ -368,25 +368,25 @@ def test_object_factorize_dropna(
368
368
(
369
369
[1 , None , 1 , 2 ],
370
370
True ,
371
- np .array ([0 , - 1 , 0 , 1 ], dtype = np .int64 ),
371
+ np .array ([0 , - 1 , 0 , 1 ], dtype = np .dtype ( "intp" ) ),
372
372
np .array ([1 , 2 ], dtype = "O" ),
373
373
),
374
374
(
375
375
[1 , np .nan , 1 , 2 ],
376
376
True ,
377
- np .array ([0 , - 1 , 0 , 1 ], dtype = np .int64 ),
377
+ np .array ([0 , - 1 , 0 , 1 ], dtype = np .dtype ( "intp" ) ),
378
378
np .array ([1 , 2 ], dtype = np .float64 ),
379
379
),
380
380
(
381
381
[1 , None , 1 , 2 ],
382
382
False ,
383
- np .array ([0 , 2 , 0 , 1 ], dtype = np .int64 ),
383
+ np .array ([0 , 2 , 0 , 1 ], dtype = np .dtype ( "intp" ) ),
384
384
np .array ([1 , 2 , np .nan ], dtype = "O" ),
385
385
),
386
386
(
387
387
[1 , np .nan , 1 , 2 ],
388
388
False ,
389
- np .array ([0 , 2 , 0 , 1 ], dtype = np .int64 ),
389
+ np .array ([0 , 2 , 0 , 1 ], dtype = np .dtype ( "intp" ) ),
390
390
np .array ([1 , 2 , np .nan ], dtype = np .float64 ),
391
391
),
392
392
],
0 commit comments