We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64b9280 commit 05f0be0Copy full SHA for 05f0be0
1 file changed
src/DataFrame/DataSeries.class.st
@@ -115,13 +115,21 @@ DataSeries >> adaptToCollection: rcvr andSend: selector [
115
DataSeries >> argmax [
116
"Returns the key which corresponds to the maximum value of the dataseries"
117
118
+ "(#(100 10 20 30) asDataSeries argmax) >>> 1"
119
+
120
+ "((DataSeries withKeys: #(A B C) values: #(1 2 40)) argmax) >>> #C"
121
122
^ self keyAtValue: self max
123
]
124
125
{ #category : #statistics }
126
DataSeries >> argmin [
127
"Returns the key which corresponds to the minimum value of the dataseries"
128
129
+ "(#(100 10 20 30) asDataSeries argmin) >>> 2"
130
131
+ "((DataSeries withKeys: #(A B C) values: #(1 2 40)) argmin) >>> #A"
132
133
^ self keyAtValue: self min
134
135
0 commit comments