I am in ArcMap and I want to sort the records based on a field and then do a Calculate Field with an auto-incrementing value with the sort in-place. Any ideas?
It looks like I could get an update cursor on the feature class then do an auto-increment, but I would still like to see if there is a way to do this in the Field Calculator in ArcMap.
globalmakes the variable persist between calculations (one calculation per row) so that it can store the running count used in each calculation. – blah238 Jan 19 '12 at 04:00itertools.countgenerator. – user2856 Aug 19 '16 at 01:45