@@ -149,13 +149,13 @@ class StatisticsTests {
149
149
" name" ,
150
150
" age" ,
151
151
" height" ,
152
- " yearsToRetirement"
152
+ " yearsToRetirement" ,
153
153
) // TODO: why double values from weight are not in the list? are they not Comparable?
154
154
155
155
val median01 = res0[" age" ][0 ] as Int
156
156
median01 shouldBe 22
157
- // val median02 = res0["weight"][0] as Double
158
- // median02 shouldBe 66.0
157
+ // val median02 = res0["weight"][0] as Double
158
+ // median02 shouldBe 66.0
159
159
160
160
// scenario #1: particular column
161
161
val res1 = personsDf.groupBy(" city" ).medianFor(" age" )
@@ -277,13 +277,13 @@ class StatisticsTests {
277
277
" name" ,
278
278
" age" ,
279
279
" height" ,
280
- " yearsToRetirement"
280
+ " yearsToRetirement" ,
281
281
) // TODO: why it's working for height and doesn't work for Double column weight
282
282
283
283
val min01 = res0[" age" ][0 ] as Int
284
284
min01 shouldBe 15
285
- // val min02 = res0["weight"][0] as Double
286
- // min02 shouldBe 38.85756039691633
285
+ // val min02 = res0["weight"][0] as Double
286
+ // min02 shouldBe 38.85756039691633
287
287
288
288
// scenario #1: particular column
289
289
val res1 = personsDf.groupBy(" city" ).minFor(" age" )
@@ -342,7 +342,7 @@ class StatisticsTests {
342
342
" age" ,
343
343
" weight" ,
344
344
" height" ,
345
- " yearsToRetirement"
345
+ " yearsToRetirement" ,
346
346
) // TODO: why is here weight presented? looks like inconsitency
347
347
348
348
val min41 = res4[" age" ][0 ] as Int
@@ -366,8 +366,8 @@ class StatisticsTests {
366
366
367
367
val max01 = res0[" age" ][0 ] as Int
368
368
max01 shouldBe 35
369
- // val max02 = res0["weight"][0] as Double
370
- // max02 shouldBe 140.0
369
+ // val max02 = res0["weight"][0] as Double
370
+ // max02 shouldBe 140.0
371
371
372
372
// scenario #1: particular column
373
373
val res1 = personsDf.groupBy(" city" ).maxFor(" age" )
@@ -426,7 +426,7 @@ class StatisticsTests {
426
426
" age" ,
427
427
" weight" ,
428
428
" height" ,
429
- " yearsToRetirement"
429
+ " yearsToRetirement" ,
430
430
) // TODO: weight is here?
431
431
432
432
val max41 = res4[" age" ][0 ] as Int
@@ -442,4 +442,3 @@ class StatisticsTests {
442
442
max51 shouldBe 35
443
443
}
444
444
}
445
-
0 commit comments