AnsweredAssumed Answered

Arcpy String field getting set to None instead of Null

Question asked by rahulpandia31 on Apr 16, 2020
Latest reply on Apr 16, 2020 by bixb0012

The code given below is setting value of the field as 'None' instead of Null?

 

import arcpy
fc = 'c:/data/base.gdb/well'
fields = ['Name']
with arcpy.da.UpdateCursor(fc, fields) as cursor:
    for row in cursor:
        row[0] = None
        cursor.updateRow(row)

 

arcmap version 10.2

I need to set these string values to null ?

Outcomes