Python Numpy AsanyArray Función Ejemplo Scalar a una matriz
# 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