SciPy - Sparse Matrices (scipy.sparse)
Identify the error in this code snippet:
from scipy.sparse import csr_matrix import numpy as np arr = np.array([[1, 0], [0, 2]]) csr = csr_matrix(arr) print(csr.indptr[3])
