Mean, Var, and Std

  • + 0 comments

    import numpy as np n, m = map(int, input().split()) arr = [] for i in range(n): lm = list(map(int, input().split())) arr.append(lm) k = np.array(arr) print(np.mean(k, axis=1)) print(np.var(k, axis=0)) print(round(np.std(k), 11))