AnsweredAssumed Answered

Python in Field Calculator

Question asked by kostas_ptr88 on Apr 1, 2015
Latest reply on Apr 2, 2015 by kostas_ptr88

Hi, I am using ArcGis 10.2., I have a problem with an expression i have created in Python for field calculator. I want to process a column  with distances in an attribute table. I want the value in the first row to be minus 10, and starting from that row to abstract each one with the next row.

My columns i want to be like that:


MO       State

2000     (2000-10)-1950=40

1950     1950-1940=10

1940     1940-1925=15

1925     1925-1954=-29



Should i click on State column to do my calculations?

Can't i put my column in a list, and treat it as it is?

In codeblock I can process something only by creating a def?

How complicated can that be??


I tried UpdateCursor, row.GetValue but i didn't manage to do it. I have read a lot of examples but none of them were very usefull for that occasion.


Thanks for your time