SciPy

scipy.sparse.coo_matrix.get_shape

coo_matrix.get_shape()[source]

Get shape of a matrix.