Note

Numpy (37) 본문

Numpy

Numpy (37)

알 수 없는 사용자 2022. 8. 29. 20:16
728x90

How to find if a given array has any null values?

# Input
url = 'https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data'
iris_2d = np.genfromtxt(url, delimiter=',', dtype='float', usecols=[0,1,2,3])

np.isnan(iris_2d).any()

# output
False

'Numpy' 카테고리의 다른 글

Numpy (39)  (0) 2022.08.31
Numpy (38)  (0) 2022.08.30
Numpy (36)  (0) 2022.08.28
Numpy (35)  (0) 2022.08.27
Numpy (34)  (0) 2022.08.26
Comments