SciPy - Sparse Matrices (scipy.sparse)
What is wrong with this code?
from scipy.sparse import csr_matrix row = [0, 1] col = [1, 2] data = [3, 4] sparse = csr_matrix((data, (row, col))) print(sparse.shape)
