File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/src/test/kotlin/org/jetbrains/kotlinx/dataframe/testSets/person Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -524,7 +524,7 @@ class DataFrameTreeTests : BaseTest() {
524
524
val plain = grouped.toDataFrame()
525
525
.update { groupCol }.at(1 ).withNull()
526
526
.update { groupCol }.at(2 ).with { emptyDataFrame() }
527
- .update { groupCol }.at(3 ).with { it? .filter { false } }
527
+ .update { groupCol }.at(3 ).with { it.filter { false } }
528
528
val res = plain.explode(dropEmpty = false ) { groupCol }
529
529
val expected = plain[groupCol.name()].sumOf { Math .max((it as AnyFrame ? )?.rowsCount() ? : 0 , 1 ) }
530
530
res.rowsCount() shouldBe expected
@@ -558,9 +558,9 @@ class DataFrameTreeTests : BaseTest() {
558
558
559
559
@Test
560
560
fun `join by frame column` () {
561
- val left = typed.groupBy { name }.updateGroups { it? .remove { name and city } }
561
+ val left = typed.groupBy { name }.updateGroups { it.remove { name and city } }
562
562
val right =
563
- typed.update { name }.with { it.reversed() }.groupBy { name }.updateGroups { it? .remove { name and city } }
563
+ typed.update { name }.with { it.reversed() }.groupBy { name }.updateGroups { it.remove { name and city } }
564
564
val groupCol = left.groups.toColumnAccessor()
565
565
val joined = left.toDataFrame().join(right.toDataFrame()) { groupCol }
566
566
joined.columnsCount() shouldBe 3
You can’t perform that action at this time.
0 commit comments