Jul-22-2019, 09:41 AM
It is normal that division by zero yields infinity, i.e. inf (floating point).
However, you can change all infs to zeros, e.g.
However, you can change all infs to zeros, e.g.
result[np.isinf(result)] = 0.0