I am working on a Python snippet try to use
arcpy.da.SearchCursor() to extract value of certain field from a Info Table which generated by executing
arcpy.Statistics_analysis().Here's my code:
arcpy.Statistics_analysis(fc,stats,[["Area","SUM"]],"") Table = "D:/xxx/stats.info" with arcpy.da.SearchCursor(Table,["AREA_SUM"]) as cursor: for row in cursor: Number = row print Number
However I always got
RuntimeError: cannot open 'D:/xxx/stats.info'. I think it's caused by improper file name extention, but I'm not sure what the correct one is.
Plus: is there any other possible way of extracting value from Info Table using arcpy?