I have imported two columns of numbers from excel and now i need to use those two columns of numbers to calculate the following...
Average_Error = sum(map(lambda a, b: abs(a - b), My_High, Actual_High))/delta.days
I need the first column to be inserted where I have My_High in the code above, and I need the second column to be inserted where I have Actual_High in the code above. I used the following code to import the numbers...
I don't know where to begin.
Thanks!
Average_Error = sum(map(lambda a, b: abs(a - b), My_High, Actual_High))/delta.days
I need the first column to be inserted where I have My_High in the code above, and I need the second column to be inserted where I have Actual_High in the code above. I used the following code to import the numbers...
Code:
f = open("C:\users\cory\desktop\Verification.csv")
dd = {}
keys = f.readline().strip().split(',')
for key in keys:
dd.setdefault(key, [])
for line in f:
for i, item in enumerate(line.strip().split(',')):
dd[keys[i]].append(int(item))
f.close()
Thanks!
Comment