SciPy

scipy.sparse.lil_matrix.get_shape

lil_matrix.get_shape()[source]

Get shape of a matrix.