SciPy

scipy.sparse.lil_matrix.shape

property lil_matrix.shape

Get shape of a matrix.