小编KJo*_*KJo的帖子

在python中查找一列数据的标准偏差

A.append([(float(a) + float(b) + float(c))/3,
          (float(d) + float(e) + float(f))/3,
          (float(g) + float(h) + float(i))/3,
          (float(j) + float(k) + float(l))/3,
          (float(m) + float(n) + float(o))/3,
          (float(p) + float(q) + float(r))/3,
          (float(s) + float(t) + float(u))/3])


def mean(A):
    positives = [b for b in A if b >= 0]
    E.append((len(positives)) / (len(A))*100)
    if positives:
        return sum(positives) / len(positives)
    else:
        return 0

C = map(mean, zip(*A))
print C

#3 sigma check
def sigma(A):
    positives = [b for b in A if b …
Run Code Online (Sandbox Code Playgroud)

python row mean multiple-columns standard-deviation

0
推荐指数
1
解决办法
4077
查看次数

标签 统计

mean ×1

multiple-columns ×1

python ×1

row ×1

standard-deviation ×1