I am a bit new for the arcpy. I have a database table so I can't use field calculator. so I would like to use Python script for solving the issue.
import arcpy
... # Your input feature class
... table = r'D:\werk_map.gdb\test_gw_bsl'
... # Start an update cursor and change values from 0 to 100 in a field called "your_field"
... with arcpy.da.UpdateCursor(table, "Thickness") as cursor:
... for row in cursor:
... if row[0] == "0,1":
... row[0] = "0,5"
... cursor.updateRow(row)
I just want to replace all “0,1” values in the thickness field with “0,5”. The above written arcpy script is running without error but not changing the values in the table. I think may be it has do something with the comma in the field value.
print row[0]
to see what is actually being picked up by the cursor – GISKid Apr 28 '17 at 14:20