You are viewing a single comment's thread. Return to all comments →
output format for this problem is incorrect. My solution: import numpy
N, M = map(int, raw_input().split())
my_array = numpy.array([ map(int, raw_input().split()) for i in range(N) ])
print numpy.mean(my_array, axis = 1) print numpy.var(my_array, axis = 0) print numpy.std(my_array, axis = None)
Seems like cookies are disabled on this browser, please enable them to open this website
Mean, Var, and Std
You are viewing a single comment's thread. Return to all comments →
output format for this problem is incorrect. My solution: import numpy
N, M = map(int, raw_input().split())
my_array = numpy.array([ map(int, raw_input().split()) for i in range(N) ])
print numpy.mean(my_array, axis = 1) print numpy.var(my_array, axis = 0) print numpy.std(my_array, axis = None)