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...
Expand|Select|Wrap|Line Numbers
- 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!