Python Numpy Asarray_Chkfinite Funktion Beispiel erhöht den Wertfehler

# welcome to softhunt.net
# Python program explaining
# numpy.asarray_chkfinite() function
# when value error occurs

import numpy as np

my_list = [1, 2, 3, 4, np.nan]

print ("Input scalar : ", my_list)
	
out_arr = np.asarray_chkfinite(my_list)
print ("output fortan array from input scalar : ", out_arr)
Outrageous Ostrich