You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
" Chain sorts the data frame in ascending order. The data frame is sorted based on the first column in the array of column names, if there are same values, then it sorts these same values based on the values of the second column and so on.."
2203
+
2204
+
arrayOfColumnNames reverseDo: [ :columnName |
2205
+
selfsortBy: columnName using: [ :a:b | a <= b ] ].
2206
+
^self
2207
+
]
2208
+
2200
2209
{ #category : #sorting }
2201
2210
DataFrame>>sortDescendingBy: columnName [
2202
2211
"Rearranges the rows of the data frame in descending order of the values in the column named columnName"
" Chain sorts the data frame in descending order. The data frame is sorted based on the first column in the array of column names, if there are same values, then it sorts these same values based on the values of the second column and so on.."
2219
+
2220
+
arrayOfColumnNames reverseDo: [ :columnName |
2221
+
selfsortBy: columnName using: [ :a:b | a >= b ] ].
2222
+
^self
2223
+
]
2224
+
2207
2225
{ #category : #statistics }
2208
2226
DataFrame>> stdev [
2209
2227
"Standard deviation is a measure of how dispersed the data is in relation to the average"
0 commit comments