Skip to content

Commit 5d96799

Browse files
committed
added max and min to StatCounter repr for pyspark
1 parent 21dd366 commit 5d96799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/statcounter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,5 +124,5 @@ def sampleStdev(self):
124124
return math.sqrt(self.sampleVariance())
125125

126126
def __repr__(self):
127-
return "(count: %s, mean: %s, stdev: %s)" % (self.count(), self.mean(), self.stdev())
127+
return "(count: %s, mean: %s, stdev: %s, max: %s, min: %s)" % (self.count(), self.mean(), self.stdev(), self.max(), self.min())
128128

0 commit comments

Comments
 (0)