Using arcmap's field calculator I need to programatically loop through all of the entries in the field and for each name it gets its own unique id. So names that are the same would get the same number. This is done through model builder.
def NameReclass(name): foreach name in species .... etc.
I'm just really confused how to do this without if/elif statements and specifying the string name == 1, etc. because it needs to be an id for each name shown.
bird
vsbird, rodent
)? I believe you'll be wanting to look at either a dictionary or a CASE statement. How many possible words/numbers are there?