Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Why is the Frequency tool in ArcGIS is so fast and efficient?

Is it possible to make my own Frequency Tool with similar performance (in python)?

I tried to do some based on python dictionary and searchCursor but when I have more than 100,000 records to analyse it takes a long time.

share|improve this question
If the reason you are looking to do this is to get Frequency functionality (which documentation says requires Advanced) with a Basic (formerly known as ArcView) license, then take a look at Summary Statistics with case_field(s) - so far I have always been able to use that in its place. – PolyGeo Jan 21 '13 at 6:48
up vote 7 down vote accepted

Probably because the internal implementation uses a lower level API (ArcObjects) and a compiled language (C++) and likely has some other optimizations not exposed through arcpy.

Also in arcpy the old cursors tend to be slow; if you are at 10.1 try the arcpy.da (data access module) cursors.

If you want help with your code, post it.

share|improve this answer
Thanks, I improved my script with arcpy.da and works faster. – user7172 Jan 21 '13 at 20:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.