This is has been extremely helpful. Quick question as I am new to arcpy. If I want to mark ALL repeated IDs with a flag and not necessarily just the second, third, fourth occurrence, how might I accomplish this? For instance, if I had the following list of values:
a
b
c
d
e
e
With the above scripts, I would get
a-0
b-0
c-0
d-0
e-0
e-1
What I want is
a-0
b-0
c-0
d-0
e-1
e-1 or 2 (Doesn't matter as long as I can see that this value is not equal to zero).
My goal is to flag the values that are duplicates, identify the value and then assign a new value to those records. If I split a polygon, for instance, I don't want to maintain the ID of the old one, I want to seek out the value and replace it with two new unique IDs.
Thanks in advance.