numpy bukan nan

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