I have a list: s = [1,0,1,1,0,1,1,1,0,0] Length of the list is 10. I'd like to make a 10 x 10 numpy array with the same list repeated 10 times.
I've been unable to achieve this in python. I'd later like to turn this array to an image for an image classification problem.
How can I go about this?
I tried:
np.reshape(s,(10,10))
But it throws - ValueError: cannot reshape array of size 10 into shape (10,10)