You can use the following methods to remove NaN values from a NumPy array: Method 1: Use isnan() new_data = data[~np.isnan(data)].
確定! 回上一頁