We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7681f1 commit d22b94aCopy full SHA for d22b94a
2 files changed
src/DataFrame/DataFrame.class.st
@@ -1288,6 +1288,7 @@ DataFrame >> min [
1288
1289
{ #category : #statistics }
1290
DataFrame >> mode [
1291
+ "The mode of a set of values is the value that appears most often. "
1292
1293
^ self applyToAllColumns: #mode
1294
]
src/DataFrame/DataSeries.class.st
@@ -468,11 +468,11 @@ DataSeries >> makeNumerical [
468
469
{ #category : #accessing }
470
DataSeries >> mode [
471
472
- | valueCounts maxCount |
473
+ | valueCounts |
474
valueCounts := self valueCounts.
- maxCount := valueCounts max.
475
- ^ valueCounts keyAtValue: maxCount
+ ^ valueCounts keyAtValue: valueCounts max
476
477
478
0 commit comments