I'm trying to iterate through all fields in my feature classes to find which fields are empty.
I have tried using the SearchCursor by borrowing bits of code from other answers.
This is what I have:
if fieldList:
with arcpy.da.SearchCursor(fc2, fieldList) as cursor:
for row in cursor:
if all(row)== NULL:
print row.name + "is empty"
Where am I going wrong?
No comments:
Post a Comment