Python Numpy AsanyArray Fonction Exemple Scalar à un tableau
# welcome to softhunt.net
# Python program explaining
# numpy.asanyarray() function
import numpy as np
my_scalar = 12
print ("Input scalar : ", my_scalar)
out_arr = np.asanyarray(my_scalar)
print ("output array from input scalar : ", out_arr)
print(type(out_arr))
Outrageous Ostrich