SciPy

scipy.sparse.lil_matrix.tobsr

lil_matrix.tobsr(blocksize=None)[source]