SciPy - Sparse Matrices (scipy.sparse)
What will be the output of this code snippet?
from scipy.sparse import coo_matrix row = [0, 0, 1] col = [0, 2, 1] data = [1, 2, 3] matrix = coo_matrix((data, (row, col)), shape=(2, 3)) print(matrix.toarray())
