AnsweredAssumed Answered

Using Lists with arcpy.da.UpdateCursor

Question asked by bakhtiariz_nngov on Jul 13, 2018
Latest reply on Jul 16, 2018 by rvburton

I am trying to use arcpy.da.UpdateCursor to find and replace old values in a field with new values.  I have made it work but I will ended up with an ridiculously lard if\elif statement (notice below that I stopped after the first 2 items in the list).  I would like to avoid this by iterating through both list to update the field.  I have tried without any luck.  Any suggestions?  Code is attached.

 

Attachments

Outcomes