File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1288,6 +1288,7 @@ DataFrame >> min [
12881288
12891289{ #category : #statistics }
12901290DataFrame >> mode [
1291+ " The mode of a set of values is the value that appears most often. "
12911292
12921293 ^ self applyToAllColumns: #mode
12931294]
Original file line number Diff line number Diff line change @@ -468,11 +468,11 @@ DataSeries >> makeNumerical [
468468
469469{ #category : #accessing }
470470DataSeries >> mode [
471+ " The mode of a set of values is the value that appears most often. "
471472
472- | valueCounts maxCount |
473+ | valueCounts |
473474 valueCounts := self valueCounts.
474- maxCount := valueCounts max.
475- ^ valueCounts keyAtValue: maxCount
475+ ^ valueCounts keyAtValue: valueCounts max
476476]
477477
478478{ #category : #accessing }
You can’t perform that action at this time.
0 commit comments