Skip to content

Commit

Permalink
[processing] add feature count to Statistics by categories output (fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Mar 25, 2014
1 parent 285fa01 commit 5e5abdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/StatisticsByCategories.py
Expand Up @@ -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)


Expand Down

0 comments on commit 5e5abdb

Please sign in to comment.