We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 136a6fb commit ad13f08Copy full SHA for ad13f08
pandas/tools/tests/test_tile.py
@@ -288,7 +288,10 @@ def test_qcut_duplicates_bin(self):
288
289
def test_single_bin(self):
290
# issue 14652
291
- expected = Series([0, 0])
+ # Explicit dtype since Series produces int64 for ints, while cut
292
+ # (due to numpy.searchsorted) would use int32 on i386, so let's assure
293
+ # correct default to the architecture int
294
+ expected = Series([0, 0], dtype=np.dtype(int))
295
296
s = Series([9., 9.])
297
result = cut(s, 1, labels=False)
0 commit comments