import csv
num = open('car3.csv')
nums = csv.reader(num)
nums_list = []
for i in nums:
nums_list.append(i)
import numpy as np
nums_arr = np.array(nums_list, dtype = np.float32)
print(nums_arr)
print(np.std(nums_arr, axis=0))
结果就是这样。你知道吗
[[ 1. 1. 2.]
[ 1. 1. 2.]
[ 1. 1. 2.]
...,
[ 0. 0. 5.]
[ 0. 0. 5.]
[ 0. 0. 5.]]
[ 0.5 0.5 1.11803401]
有很多我没想到的地方。 我怎么处理这些?你知道吗
这不是间距问题。你所需要做的就是保存标准差的输出。然后,您可以按如下方式访问每个值:
相关问题 更多 >
编程相关推荐