SyntaxFix
Write A Post
Hire A Developer
Questions
Try:
mmatrix = np.zeros((nrows, ncols))
Since the shape parameter has to be an int or sequence of ints
http://docs.scipy.org/doc/numpy/reference/generated/numpy.zeros.html
Otherwise you are passing ncols to np.zeros as the dtype.
ncols
np.zeros