Skip to content

Commit 5c788a3

Browse files
committed
fix platform dtype
1 parent 929cc37 commit 5c788a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/test_algos.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,14 @@ def test_basic(self):
9898
codes, uniques = algos.factorize(list(reversed(range(5))))
9999
exp = np.array([0, 1, 2, 3, 4], dtype=np.intp)
100100
tm.assert_numpy_array_equal(codes, exp)
101-
exp = np.array([4, 3, 2, 1, 0], dtype=np.int32)
101+
exp = np.array([4, 3, 2, 1, 0], dtype=np.int64)
102102
tm.assert_numpy_array_equal(uniques, exp)
103103

104104
codes, uniques = algos.factorize(list(reversed(range(5))), sort=True)
105105

106106
exp = np.array([4, 3, 2, 1, 0], dtype=np.intp)
107107
tm.assert_numpy_array_equal(codes, exp)
108-
exp = np.array([0, 1, 2, 3, 4], dtype=np.int32)
108+
exp = np.array([0, 1, 2, 3, 4], dtype=np.int64)
109109
tm.assert_numpy_array_equal(uniques, exp)
110110

111111
codes, uniques = algos.factorize(list(reversed(np.arange(5.0))))

0 commit comments

Comments
 (0)