Skip to content

Commit

Permalink
TST: Fix test case to use int64 and explicit float
Browse files Browse the repository at this point in the history
  • Loading branch information
jtratner committed Nov 8, 2013
1 parent 5ca923d commit a27c6ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/tests/test_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -1724,7 +1724,7 @@ def test_mode(self):
exp = Series([11, 12])
assert_series_equal(s.mode(), exp)

assert_series_equal(Series([1, 2, 3]).mode(), Series([], dtype=int))
assert_series_equal(Series([1, 2, 3]).mode(), Series([], dtype='int64'))

lst = [5] * 20 + [1] * 10 + [6] * 25
np.random.shuffle(lst)
Expand All @@ -1736,7 +1736,7 @@ def test_mode(self):

s = Series(lst)
s[0] = np.nan
assert_series_equal(s.mode(), Series([6], dtype=float))
assert_series_equal(s.mode(), Series([6.]))

s = Series(list('adfasbasfwewefwefweeeeasdfasnbam'))
assert_series_equal(s.mode(), Series(['e']))
Expand Down

0 comments on commit a27c6ec

Please sign in to comment.