SciPy

scipy.sparse.csr_matrix.get_shape

csr_matrix.get_shape()[source]

Get shape of a matrix.