I have a table that has Null values and I would like to insert a portion in my script to calculate these Null values to 0 in only a few of my columns in my table.
Here is my script so far:
with arcpy.da.UpdateCursor(target, "ELEM_STUD") as cursor: for row in cursor: row = None cursor.updateRow(row) del row
Target is my table, which is a parameter that is defined prior to this portion of my code.
The error that I am getting is in the first line, stating that 'ELEM_STUD' is not defined. That is the first of multiple fields I would like this script to run through.
I have also tried to add
removeNull ("ELEM_STUD") after my cursor and haven't had any luck there either.