Numpy no es nan

a = a[~np.isnan(a)]
Attractive Albatross