SciPy

scipy.sparse.csr_matrix.shape

csr_matrix.shape

Get shape of a matrix.