SciPy

scipy.sparse.csr_matrix.shape

property csr_matrix.shape

Get shape of a matrix.