0

Good morning to all. I want to generate an array for example with 10 columns and 100 rows with the vector a = np.arange (1,1001), but I do not want to use loop since my web page gets saturated if I put a loop. Someone knows of some numpy or math command or another.

Thank you very much for your attention.

1 Answers1

3

a = np.arange(1000).reshape(100, 10) should do it.

Tom Wyllie
  • 2,020
  • 13
  • 16