0

How would I go about loading a list into a numpy matrix, with different rows/columns.

I.e.

i=[1,2,3,4,5,6,7,8,9] 

would be loaded in for example as

np.matrix([[1,2,3],[4,5,6],[7,8,9]]
no nein
  • 631
  • 3
  • 10
  • 27

0 Answers0