SciPy - Sparse Matrices (scipy.sparse)
What is wrong with this code?
from scipy.sparse import csc_matrix import numpy as np arr = np.array([1, 0, 2]) csc = csc_matrix(arr) print(csc.shape)
