Skip to content

Commit c3ab8b1

Browse files
committed
TST: test_quantile.py test comparison on windows
1 parent 602883a commit c3ab8b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/frame/test_quantile.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def test_quantile_interpolation(self):
112112
# cross-check interpolation=nearest results in original dtype
113113
exp = np.percentile(np.array([[1, 2, 3], [2, 3, 4]]), .5,
114114
axis=0, interpolation='nearest')
115-
expected = Series(exp, index=[1, 2, 3])
115+
expected = Series(exp, index=[1, 2, 3], dtype='int64')
116116
assert_series_equal(result, expected)
117117

118118
# float
@@ -122,7 +122,7 @@ def test_quantile_interpolation(self):
122122
assert_series_equal(result, expected)
123123
exp = np.percentile(np.array([[1., 2., 3.], [2., 3., 4.]]), .5,
124124
axis=0, interpolation='nearest')
125-
expected = Series(exp, index=[1, 2, 3])
125+
expected = Series(exp, index=[1, 2, 3], dtype='float64')
126126
assert_series_equal(result, expected)
127127

128128
# axis

0 commit comments

Comments
 (0)