New to python here. I have looked through the 'similar questions' section to try and answer this myself and have found many attribute table python queries which are related to statistical operations. These typically call some other Arcgis tool. What I would like to do is a little different and I haven't found exactly how to do it yet.
I have two fields. The first has a list of name classifications for a cities general plan such as Lower Hillside, Residential Neighborhood, and so on. The second list houses a numerical 'code' which relates to conforming uses. Typically I have to select by attribute the specific general plan designation such as Lower Hillside and then use field calculator on the selected features to fill the second attribute table with the proper code.
What I would like to do is generate the codes based on the names. For instance, if the general plan column has "Lower Hillside" then the code column would equal "3" and so on. This would be repeated for a zoning designation as well. As pointed out in the comments this is a 1-to-1 generation. I could see something like the list of general plan names alphabetically assigned 0-x. I'm just not sure how to do that.