i have a folder that contains csv excel files that have numbers in the first column labeled 'x', second column label'y', and third column labeled'z'. i was trying to take all of the numbers in the x and calculate the averages and std, take all the numbers in the y column for all files and calculate the average and std...the same for the z column.this is what i have so far....but it doesn't seem to work
import csv
import os
from numpy import array
path="A:\\yoyo\\heyy\\folder"
dirList=os.listdir(path)
for file in dirList:
fullpath=os.path.join(path,file)
## print fullpath
with open(fullpath, 'rb') as f:
nums=[[val for val in line.split(',')] for line in f.readlines()]
## print line
anums = array([nums])
for c in range(anums.shape[1]):
column = anums[:,c]
col_mean=column.mean()
col_std=column.std()
print col_mean
print col_std