You are viewing a single comment's thread. Return to all comments →
import numpy
n , m = map(int,input().split())
arrayList = [] for i in range(n): arrayList.append(list(map(int,input().split())))
my_array = numpy.array(arrayList) print(numpy.mean(my_array, axis = 1)) print(numpy.var(my_array, axis = 0)) print(round(numpy.std(my_array, axis = None), 11))
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 →
import numpy
n , m = map(int,input().split())
arrayList = [] for i in range(n): arrayList.append(list(map(int,input().split())))
my_array = numpy.array(arrayList) print(numpy.mean(my_array, axis = 1)) print(numpy.var(my_array, axis = 0)) print(round(numpy.std(my_array, axis = None), 11))