SciPy - Sparse Matrices (scipy.sparse)
What will be printed by this code?
import numpy as np from scipy.sparse import csr_matrix arr = np.zeros((3,3)) arr[0,1] = 7 arr[2,2] = 4 sparse_mat = csr_matrix(arr) print(sparse_mat.data)
