📜  numpy 删除包含 nan 的行 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:58.975000             🧑  作者: Mango

代码示例1
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