AnsweredAssumed Answered

Duplicate Values

Question asked by powerplanner on Sep 19, 2014
Latest reply on Oct 17, 2014 by powerplanner

I have a table that has one field with duplicate values. Is there any code that will label the duplicates 0, 1, 2, 3, 4 ..., rather than 0 and 1 as the following code does which I've found on ESRI's web site.

 

Python parser, and use  then use the following codebook.

 

uniqueList = []

def isDuplicate(inValue):

  if inValue in uniqueList:

    return 1

  else:

    uniqueList.append(inValue)

    return 0

 

 

isDuplicate(!PCN!)

Outcomes