Skip to content

Commit 0936f63

Browse files
Statistics.countnans: Fix copy=False param from coo.tocsr call
1 parent ef005f3 commit 0936f63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orange/statistics/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def _count_nans_per_row_sparse(X, weights, dtype=None):
2323
data_weights = weights[nan_rows, nan_cols]
2424

2525
w = sp.coo_matrix((data_weights, (nan_rows, nan_cols)), shape=X.shape)
26-
w = w.tocsr(copy=False)
26+
w = w.tocsr()
2727

2828
return np.fromiter((np.sum(row.data) for row in w), dtype=dtype)
2929

0 commit comments

Comments
 (0)