python numpy中给nan赋值,删去nan array 是numpy中一个数组import numpy as np# 给nan赋值0array[ np.isnan(array) ] = 0# 筛掉nanarray[~ np.isnan(array) ] python 2023-06-25 48 点赞 0 评论 72 浏览