scipy.sparse.coo_matrix.

scipy.sparse.coo_matrix.shape

property coo_matrix.shape

Shape of the matrix