Skip to content

Commit

Permalink
fix platform dtype
Browse files Browse the repository at this point in the history
  • Loading branch information
topper-123 committed Apr 24, 2021
1 parent 929cc37 commit d8b1052
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/tests/test_algos.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ def test_basic(self):
codes, uniques = algos.factorize(list(reversed(range(5))))
exp = np.array([0, 1, 2, 3, 4], dtype=np.intp)
tm.assert_numpy_array_equal(codes, exp)
exp = np.array([4, 3, 2, 1, 0], dtype=np.int32)
exp = np.array([4, 3, 2, 1, 0], dtype=np.intp)
tm.assert_numpy_array_equal(uniques, exp)

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

exp = np.array([4, 3, 2, 1, 0], dtype=np.intp)
tm.assert_numpy_array_equal(codes, exp)
exp = np.array([0, 1, 2, 3, 4], dtype=np.int32)
exp = np.array([0, 1, 2, 3, 4], dtype=np.intp)
tm.assert_numpy_array_equal(uniques, exp)

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

0 comments on commit d8b1052

Please sign in to comment.