Skip to content

Commit c584ae7

Browse files
TST: Update sparse data generation (#23323)
There's a spurious failure on master when the first is randomly chosen to be 0, since type(arr.fill_value) doesn't match arr.dtype.type
1 parent 1c26375 commit c584ae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/extension/test_sparse.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def make_data(fill_value):
1212
if np.isnan(fill_value):
1313
data = np.random.uniform(size=100)
1414
else:
15-
data = np.random.randint(0, 100, size=100)
15+
data = np.random.randint(1, 100, size=100)
1616

1717
data[2::3] = fill_value
1818
return data

0 commit comments

Comments
 (0)