I'm using a Phython script to count the number of unique string values in a feature class. My script works if there are values in the field but if there are any NUll values in the field it crashes. Any Ideas?
import arcpy
import operator
inTable = arcpy.GetParameterAsText(0)
stringField = arcpy.GetParameterAsText(1)
stringList = [row.getValue(stringField) for row in arcpy.SearchCursor
(inTable, "", "",stringField)]
Nonevalues, which is the Python representation ofNULL. – Brian Feb 27 '12 at 14:24