0

Why can't I reshape in numpy array

When I was going on with my work. I fell into this error. That can't reshape an array of 24 in (2,45). Any ideas how this works. https://code.sololearn.com/cf1RfETNMc43/?ref=app Code is not yet complete.

5th Nov 2021, 10:27 AM
MATOVU CALEB
MATOVU CALEB - avatar
1 Resposta
+ 4
the array size is 24. Shaping an array requires basically a length and a width argument. You just have to supply and two numbers that multiply to equal 24. 12,2 4,6 whatever, then print it out to see
5th Nov 2021, 10:53 AM
Slick
Slick - avatar