import numpy data = numpy.loadtxt(fname='data.txt', delimiter=',') print(data) print(numpy.mean(data, axis=0)[1]) print(numpy.std(data, axis=0, ddof=1)[1]) # ddof = 1 gives std of sample; default is population.