I have a small problem here, I\'m trying to sum up entries from multiple files (50), and each of them contain 3 columns. for example, using the first 3 files: file1.txt, fi
In [1]: import numpy as np In [2]: from StringIO import StringIO In [3]: txt ="""2 3 4 ...: 1 5 6 ...: 5 4 7""" In [4]: f = StringIO(txt) In [5]: arr = np.loadtxt(f,dtype = int) In [6]: np.sum(arr,axis = 0) Out[6]: array([ 8, 12, 17])