AnsweredAssumed Answered

HOW TO VALUE ROW COUNT?

Question asked by avid1 on Mar 10, 2015
Latest reply on Mar 11, 2015 by Dan_Patterson

I Have A Fc With A Field Which Contain
1,2,3 Value.

I Need To Write A Code That Give Me
The Total Count For Each Value:

 

1=29

2=52

3=57

 

this is the code:

 

print "start"

import arcpy

  1. arcpy.env.overwriteOutput = 1

 

fc =r"D:\AVI_DAVID\zevel\zevel.gdb\Export_Output_miv_cur"

lst_field =arcpy.ListFields(fc,"USAGE")      # usage is the field

for f in lst_field:

    print f.name

   

 

DO I NEED A SEARCHCURSOR? OR
UPDATECURSOR?

AVI

Outcomes