I have the following code:
import numpy as np from numpy import ma e = np.array([1, 0.2, 0, 0.3, 0, 0.4, 0]) e = ma.log10(e) result = np.nanargmax(np.where(e