Hey this might be a simple question, but I have never had to import any files into Python before.
So I have a numpy Matrix in a text file, named dmatrix.txt, so how would I be able to import the file into Python and use the matrix?
I am trying to use numpy.load(), but I am unsure how to use it.
Try
numpy.loadtxt('dmatrix.txt'); you could add adelimiterargument if the file is comma-separated or something.numpy.loadis for files in numpy/python binary formats – created bynumpy.save,numpy.savez, orpickle.