Skip to content

Commit 5e5abdb

Browse files
committed
[processing] add feature count to Statistics by categories output (fix #9871)
1 parent 285fa01 commit 5e5abdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/plugins/processing/algs/StatisticsByCategories.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ def processAlgorithm(self, progress):
8787
except:
8888
pass
8989

90-
fields = ['category', 'min', 'max', 'mean', 'stddev']
90+
fields = ['category', 'min', 'max', 'mean', 'stddev', 'count']
9191
writer = output.getTableWriter(fields)
9292
for (cat, v) in values.items():
9393
(min, max, mean, stddev) = calculateStats(v)
94-
record = [cat, min, max, mean, stddev]
94+
record = [cat, min, max, mean, stddev, len(v)]
9595
writer.addRecord(record)
9696

9797

0 commit comments

Comments
 (0)