Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import arcpy
  2.  
  3. # Your input feature class
  4. fc = r'C:pathtoyour.gdbfeature_class'
  5.  
  6. # Start an update cursor and change values from 0 to 100 in a field called "your_field"
  7. with arcpy.da.UpdateCursor(fc, "your_field") as cursor:
  8. for row in cursor:
  9. if row[0] == 0:
  10. row[0] = 100
  11. cursor.updateRow(row)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement