You should really try to elaborate your question.
If your numpy array is 1D then do the following:
for i in range(arr.shape[0]):
print(arr[i])
If your numpy array is 2D then do the following:
for i in range(arr.shape[0]):
for j in range(arr.shape[1]):
print(arr[i,j])
if you want to denote the 'NaN' values differently. Just use an if statement
if math.isnan(arr[i,j]):
arr[i,j] = "anything"
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…