Commit 158177d4 authored by Stephen Pearce's avatar Stephen Pearce Committed by Maxim Belkin

code/readings_02.py: harmonise with lesson text (#745)

parent b0642159
import sys
import numpy
def main():
script = sys.argv[0]
filename = sys.argv[1]
data = numpy.loadtxt(filename, delimiter=',')
for m in data.mean(axis=1):
print(m)
for row_mean in numpy.mean(data, axis=1):
print(row_mean)
if __name__ == '__main__':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment