We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b1e745 commit 9be1dffCopy full SHA for 9be1dff
pandas/tests/series/test_ufunc.py
@@ -28,8 +28,8 @@ def arrays_for_binary_ufunc():
28
"""
29
A pair of random, length-100 integer-dtype arrays, that are mostly 0.
30
31
- a1 = np.random.randint(0, 10, 100)
32
- a2 = np.random.randint(0, 10, 100)
+ a1 = np.random.randint(0, 10, 100, dtype='int64')
+ a2 = np.random.randint(0, 10, 100, dtype='int64')
33
a1[::3] = 0
34
a2[::4] = 0
35
return a1, a2
@@ -38,7 +38,7 @@ def arrays_for_binary_ufunc():
38
@pytest.mark.parametrize("ufunc", UNARY_UFUNCS)
39
@pytest.mark.parametrize("sparse", SPARSE, ids=SPARSE_IDS)
40
def test_unary_ufunc(ufunc, sparse):
41
- array = np.random.randint(0, 10, 10)
+ array = np.random.randint(0, 10, 10, dtype='int64')
42
array[::2] = 0
43
if sparse:
44
array = pd.SparseArray(array, dtype=pd.SparseDtype('int', 0))
0 commit comments