Skip to content

Commit 8f19acb

Browse files
committed
[processing] fix Statistics by categories algorithm
1 parent 4a6eec7 commit 8f19acb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

python/plugins/processing/algs/StatisticsByCategories.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,10 @@ def processAlgorithm(self, progress):
7777
except:
7878
pass
7979

80-
fields = [QgsField("category", QVariant.String), QgsField("min", QVariant.Double),
81-
QgsField("max", QVariant.Double), QgsField("mean", QVariant.Double),
82-
QgsField("stddev", QVariant.Double)]
80+
#fields = [QgsField("category", QVariant.String), QgsField("min", QVariant.Double),
81+
# QgsField("max", QVariant.Double), QgsField("mean", QVariant.Double),
82+
# QgsField("stddev", QVariant.Double)]
83+
fields = ["category", "min", "max", "mean", "stddev"]
8384
writer = output.getTableWriter(fields)
8485
for cat, v in values.items():
8586
min, max, mean, stddev = calculateStats(v)

0 commit comments

Comments
 (0)