None is considered as false condition. But np.NaN is considered as True when converted as bool.
any([np.nan, np.NaN, None])
#True
I understand, it can be caught using np.isnan(). If my data has combination of np.NaN, None, np.nan, then how can I find it if any of these is present.
Is there any simpler way to find either of them?
EDIT:
Expected Output:
func([np.nan, np.NaN, None, 2])
#True
func([np.nan, np.NaN, None,''])
#False