[Tutor] Python question

Eleonora Panini eleonora.panini7jkd at gmail.com
Mon Apr 18 05:50:54 EDT 2022


<https://stackoverflow.com/posts/71904558/timeline>

I need help to do the following steps in Phyton:

-my starting array is: array = np.random.rand(1024x11700)

-I have to obtain an array 1024x23400 with the following characteristics:
25 columns(1024x25) of data and 25 columns (1024x25) of zeros

 So I thought to do a loop every 25 columns(1024x25), insert an array of
zeros (1024x25) alternatevely every 25 columns, so I obtain an array
1024x23400..

but I don't know how to do it in Phyton.. Can you help me? Thank you

-- 
*Eleonora Panini*
*3480581404*


More information about the Tutor mailing list