We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4b4a81 commit 09a46f5Copy full SHA for 09a46f5
pandas/tests/test_algos.py
@@ -266,7 +266,7 @@ def test_parametrized_factorize_na_value_default(self, data):
266
# arrays that include the NA default for that type, but isn't used.
267
l, u = algos.factorize(data)
268
expected_uniques = data[[0, 1]]
269
- expected_labels = np.array([0, 1, 0], dtype='i8')
+ expected_labels = np.array([0, 1, 0], dtype=np.intp)
270
tm.assert_numpy_array_equal(l, expected_labels)
271
tm.assert_numpy_array_equal(u, expected_uniques)
272
@@ -283,7 +283,7 @@ def test_parametrized_factorize_na_value_default(self, data):
283
def test_parametrized_factorize_na_value(self, data, na_value):
284
l, u = algos._factorize_array(data, na_value=na_value)
285
expected_uniques = data[[1, 3]]
286
- expected_labels = np.array([-1, 0, -1, 1], dtype='i8')
+ expected_labels = np.array([-1, 0, -1, 1], dtype=np.intp)
287
288
289
0 commit comments