How to count the number of records from a field 'COVER' that is neither 'woods' and neither 'orchards'?
fileName = 'C:/gispy/data/ch17/parkCopy3.shp'
fields = ['COVER', 'FID']
count = 0 .
try:
with arcpy.da.UpdateCursor(fileName, fields) as cursor:
for row in cursor:
if row[0] != 'woods' or row[0] != 'orchards':
count = row[0].count
cursor.updateRow(row)
del cursor
print 'Number of records with other cover types:{0}'.format(count)
except: