SciPy

scipy.sparse.dok_matrix.maximum

dok_matrix.maximum(other)[source]