SciPy - Sparse Matrices (scipy.sparse)
Given the following code, what will be the output of
print(csr.data)?
import numpy as np from scipy.sparse import csr_matrix arr = np.array([[0, 0, 1], [2, 0, 0], [0, 3, 0]]) csr = csr_matrix(arr) print(csr.data)
