📅  最后修改于: 2022-03-11 14:47:09.336000             🧑  作者: Mango
a = a[~(np.isnan(a).any(axis=0))] # removes columns containing at least one nan
a = a[~(np.isnan(a).all(axis=0))] # removes columns containing all nan