SciPy

scipy.sparse.lil_matrix.getrow

lil_matrix.getrow(i)[source]

Returns a copy of the ‘i’th row.