Finding empty attribute field with search cursor

المشرف العام

Administrator
طاقم الإدارة
I'm trying to iterate through all fields in my feature classes to find which fields are empty. I've had a go at using the SearchCursor (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"Can anyone tell me where I'm going wrong? Thanks!



أكثر...
 
أعلى