SciPy - Sparse Matrices (scipy.sparse)
Identify the error in the following code snippet that attempts to create a CSR matrix:
from scipy.sparse import csr_matrix arr = [[0, 1], [2, 0]] csr = csr_matrix(arr, shape=(2, 1)) print(csr.shape)
