np ignore divide by zero seterr code example Example: np ignore divide by zero seterr np.seterr(divide='ignore')