Skip to content

Commit b14ffd8

Browse files
Backport PR #40020: CI/TST: Supply dtype to coo_matrix until scipy is fixed (#40034)
Co-authored-by: Richard Shadrach <[email protected]>
1 parent e0321f1 commit b14ffd8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/tests/arrays/sparse/test_array.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,9 @@ def test_from_coo(self):
11741174
row = [0, 3, 1, 0]
11751175
col = [0, 3, 1, 2]
11761176
data = [4, 5, 7, 9]
1177-
sp_array = scipy.sparse.coo_matrix((data, (row, col)))
1177+
# TODO: Remove dtype when scipy is fixed
1178+
# https://github.com/scipy/scipy/issues/13585
1179+
sp_array = scipy.sparse.coo_matrix((data, (row, col)), dtype="int")
11781180
result = pd.Series.sparse.from_coo(sp_array)
11791181

11801182
index = pd.MultiIndex.from_arrays([[0, 0, 1, 3], [0, 2, 1, 3]])

0 commit comments

Comments
 (0)