AnsweredAssumed Answered

Create Unique ID

Question asked by ian.irmischer on Dec 27, 2015
Latest reply on Dec 29, 2015 by JTodd-esristaff

I have a large featureclass with over 100000 records.  I have a field called Last_name.  There are 200 unique last names in this field such as "jones" or "smith".  I would like to create a new field called UID that puts a number in this field based on the last name.  Since I have 200 last names, this field would then have just 200 numbers in it from 1 to 200.  This will be used to remove personal information from the featureclass.  Is there a function in arcpy to create a new field with unique IDs based on another field?

 

Or is there a script I can use in the field calculator to accomplish this?

 

Thanks,

Ian

Outcomes