scipy.sparse.spmatrix.

scipy.sparse.spmatrix.shape

property spmatrix.shape

Shape of the matrix