SHARE
TWEET

Untitled

a guest Sep 14th, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import arcpy
  2. import arcpy
  3. import collections
  4.  
  5. arcpy.env.workspace = r"path"
  6. arcpy.env.overwriteOutput = True
  7.  
  8. #time.sleep(5)
  9.  
  10. #StartTime = time.clock()
  11.  
  12. fclist = arcpy.ListFeatureClasses("*Rebok*")
  13. for fc in fclist:
  14.  
  15.    fields = [f.name for f in arcpy.ListFields(fc)]
  16.  
  17.    Tcount = str(arcpy.GetCount_management(fc))
  18.  
  19.  
  20. # Loop through Table and see which fields are NOT NULL or Non Blank
  21.    cur = arcpy.SearchCursor(fc)
  22.    count = 0
  23.    for row in cur:
  24.     if not row.getValue(fields) in [None, " ", ""]:
  25.             count += 1
  26.    print count
RAW Paste Data
Top