Skip to content

Commit 316f5ac

Browse files
authored
CI/TST: Supply dtype to coo_matrix until scipy is fixed (#40020)
1 parent 5bbee18 commit 316f5ac

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
@@ -1185,7 +1185,9 @@ def test_from_coo(self):
11851185
row = [0, 3, 1, 0]
11861186
col = [0, 3, 1, 2]
11871187
data = [4, 5, 7, 9]
1188-
sp_array = scipy.sparse.coo_matrix((data, (row, col)))
1188+
# TODO: Remove dtype when scipy is fixed
1189+
# https://github.com/scipy/scipy/issues/13585
1190+
sp_array = scipy.sparse.coo_matrix((data, (row, col)), dtype="int")
11891191
result = pd.Series.sparse.from_coo(sp_array)
11901192

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

0 commit comments

Comments
 (0)