Guest User

Untitled

a guest
May 22nd, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. import arcpy
  2. Tl= "D:/Shreya/DL.shp"
  3. fields = ["FTR_CRY", "RANK"]
  4. with arcpy.da.UpdateCursor(Tl, fields) as cursor:
  5. for row in cursor:
  6. if row[0] =="COMGOV":
  7. row[1] = 1
  8. cursor.updateRow(row)
Add Comment
Please, Sign In to add comment