This question already has an answer here:
I need to increment a row in attribute table:
def func (w,v,pot): return pot + ((pot+1 - pot)/(v+1 - v))*(w-v)
The "+1" is not the addition of number one to the variable, is the intention to increment + 1 row in that column of that variable. This is because I need to calculate the actual record using records from the next line.
How can I do that? I know this is basic, but I realy don't know python.