scipy.sparse
lil_matrix.
asfptype
Upcast matrix to a floating point format (if necessary)
scipy.sparse.lil_matrix.asformat
scipy.sparse.lil_matrix.astype