SciPy

scipy.sparse.coo_matrix.shape

property coo_matrix.shape

Get shape of a matrix.