SyntaxFix
Write A Post
Hire A Developer
Questions
I would like to propose a solution for numpy that worked well for me. The line
from numpy import inf inputArray[inputArray == inf] = np.finfo(np.float64).max
substitues all infite values of a numpy array with the maximum float64 number.