Tried a lot but I'm not able to cast the whole elements into array,I want 10 elements in my 1D Array
I Use This Code
import numpy as np
list1=np.random.randint(low=50,high=100,size=50).reshape(10,5)
for i in list1.flat:
print(i)
list2=np.array(i,dtype=int)
list2
To See The Output >>>>>> Refer To this pic
I'm always getting 1 element as output instead of 10 elements