scipy.sparse.csr_matrix.

scipy.sparse.csr_matrix.shape

property csr_matrix.shape

Shape of the matrix