Skip to content

Commit d22b94a

Browse files
committed
Add comments
1 parent b7681f1 commit d22b94a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/DataFrame/DataFrame.class.st

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,6 +1288,7 @@ DataFrame >> min [
12881288

12891289
{ #category : #statistics }
12901290
DataFrame >> mode [
1291+
"The mode of a set of values is the value that appears most often. "
12911292

12921293
^ self applyToAllColumns: #mode
12931294
]

src/DataFrame/DataSeries.class.st

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,11 +468,11 @@ DataSeries >> makeNumerical [
468468

469469
{ #category : #accessing }
470470
DataSeries >> 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 }

0 commit comments

Comments
 (0)