SciPy - Sparse Matrices (scipy.sparse)
What will be the output of this code?
from scipy.sparse import csr_matrix import numpy as np mat = csr_matrix(np.array([[0, 1], [2, 0]])) print(mat.toarray())
