Python Numpy Asanyarray Funkcja Przykładowy skalar do tablicy

# 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