SciPy

scipy.sparse.lil_matrix.maximum

lil_matrix.maximum(other)[source]