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