I need to update attributes with arcpy.updateCursor and updateRow based on a list of service numbers, but I can't even get one row to update. This is my beginner code.
df= r"GAS FEATURES\SERVICE GROUP\Gas Service Point"
rows = arcpy.UpdateCursor(df)
for row in rows:
----if row.getValue("SERVICENUMBER")= '02753-725':
----row.SetValue("SubtypeCD",'Multiple Meter Service')
----rows.updateRow(row)
arcpy.da.UpdateCursor
). This will save you pain and time. Please Edit your question to specify the exact release of ArcGIS in use, to use DA cursors, to indent the code properly with the{}
formatting button, include some debugprint
statements, and list output. – Vince Feb 8 '19 at 22:22