scipy.sparse.lil_matrix.set_shape

lil_matrix.set_shape(shape)

This Page