Hi,
I want to create a matrix containing 20 rows and 2 cols. I know how to do this, but I have these two files; number and amount (each file contains 1 col and 20 rows) and I don't know how to add these files into this matrix that I'm creating like this,
import numpy as ny
M = ny.zeros((20,2),float)
M[:,0] = number
M=[:,1] = amount
Do I need a for loop to be able to add all the information into all the rows in the matrix? Because now I get this error message saying ValueError: setting an array element with a sequence. Also it complains about my files is not number, e.g. number-file rows looks like this