To check if a number is 'NAN', a solution is to use the math module with the function isnan() import numpy as np import math x = 2.0 math.isnan(x).
確定! 回上一頁