Skip to content
Permalink
Browse files

[processing] add feature count to Statistics by categories output (fix

  • Loading branch information
alexbruy committed Mar 25, 2014
1 parent 285fa01 commit 5e5abdb419654d2b78edfe211a746b2d28fdfeab
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/algs/StatisticsByCategories.py
@@ -87,11 +87,11 @@ def processAlgorithm(self, progress):
except:
pass

fields = ['category', 'min', 'max', 'mean', 'stddev']
fields = ['category', 'min', 'max', 'mean', 'stddev', 'count']
writer = output.getTableWriter(fields)
for (cat, v) in values.items():
(min, max, mean, stddev) = calculateStats(v)
record = [cat, min, max, mean, stddev]
record = [cat, min, max, mean, stddev, len(v)]
writer.addRecord(record)


0 comments on commit 5e5abdb

Please sign in to comment.
You can’t perform that action at this time.