AnsweredAssumed Answered

Counter method with questionable results

Question asked by LarryAdgate on Nov 7, 2018
Latest reply on Nov 7, 2018 by dkwiens

Thank you in advance for any assistance on my project.....

I like the Counter method but I am doubting my results. I am looping through thirty seven feature classes and I am getting an answer that I do not believe. How can I make sure I and looping  through all my files and getting a good result....    

 

mylists = a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,bb,cc,dd,ee,ff,gg,hh,ii,jj,kk

for mylist in mylists:
    valveSizes = (r[0] for r in arcpy.da.SearchCursor(mylist,["DIAMETER"]))
print "Total Company Valve Count By Sizes:"
print Counter(valveSizes)

 

#My answer is below but these numbers should be a lot higher

Total Company Valve Count By Sizes:

Counter({6.0: 1324, 8.0: 793, 4.0: 413, 12.0: 108, 10.0: 32, 16.0: 12, None: 3, 2.0: 2, 14.0: 1})

Outcomes