I have data that I need to do simple math on but it is all in the same column. Here is what my data might look like
I need to do something like (A4+A5)-(A2+A3), then continue the pattern on each row. For example, my formula would be something like (A5+A6)-(A3+A4). I have been thinking about how to do this for a week almost and I cannot figure it out. What is the best way to go about this? I think my best bet would be to transpose the data and then work with it from there?
Thank you
Edit: ok I have come up with something that I think will work but I am not completely sure I am thinking of this right. Here is a code snippet. assuming the said data is in a numpy array starting with index 0, this would do the job right?
for x in range(len(list24)):
try:
filt = ((list24[x+2]+list24[x+3])-(list24[x]+list24[x+1]))
fraser.append(filt)
except IndexError:
pass

