Quantcast
Channel: Question and Answer » arcpy
Viewing all articles
Browse latest Browse all 767

How to detect duplicate attribute values in a table using ArcPy

$
0
0

In ArcMap, the right-click Summarize option very quickly creates a frequency listing of the chosen field:

summarize

enter image description here

Note that the count field shows the count of duplicate values. How can I access this using ArcPy?

Is it possible to access ArcGIS's table operations "Summarize…" and "Statistics…" in python? suggests using Summary Statistics, but I can’t get any meaningful output from this tool. Instead, it always just lists the total count of features, rather than the frequency of each individual value:

enter image description here

How can I achieve the result from the second screenshot above, using ArcPy in ArcMap 10.0 with an ArcEditor license (whereby I can’t run the FREQUENCY command)?

Dan Patterson’s script applies to ArcGIS 9.3 so (probably) isn’t useful?


Viewing all articles
Browse latest Browse all 767

Trending Articles