block by maptastik 375fd883c6d97d3b1454123cd0d62eda

Generate basic summary statistics for a field in a feature class using ArcPy

Generating summary statistics in ArcGIS is a bit more complicated than it needs to be. The Summary Statistics tool requires that you return your output to some sort of tabular data file. Sometimes you just need to see the number really quickly or see how they change if you filter the data differntly. This is function is the beginnings of a simple tool to generate summary statistics for a given field in a feature class. The function returns a dictionary containing the number of entries, the sum of the entries, and mean/median/standard deviatation value of the entries for the inputed field.

basic_fc_stats.py