how to check an numpy array is not nan code example
Example 1: python numpy array check if all nans
np.all(np.isnan(numpy_array))
Example 2: numpy is not nan
a = a[~np.isnan(a)]
np.all(np.isnan(numpy_array))
a = a[~np.isnan(a)]