Skip to content

Commit 9c574a4

Browse files
committed
Fix warnings about expected breaking changes
1 parent 533f084 commit 9c574a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/src/test/kotlin/org/jetbrains/kotlinx/dataframe/testSets/person/DataFrameTreeTests.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ class DataFrameTreeTests : BaseTest() {
524524
val plain = grouped.toDataFrame()
525525
.update { groupCol }.at(1).withNull()
526526
.update { groupCol }.at(2).with { emptyDataFrame() }
527-
.update { groupCol }.at(3).with { it?.filter { false } }
527+
.update { groupCol }.at(3).with { it.filter { false } }
528528
val res = plain.explode(dropEmpty = false) { groupCol }
529529
val expected = plain[groupCol.name()].sumOf { Math.max((it as AnyFrame?)?.rowsCount() ?: 0, 1) }
530530
res.rowsCount() shouldBe expected
@@ -558,9 +558,9 @@ class DataFrameTreeTests : BaseTest() {
558558

559559
@Test
560560
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 } }
562562
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 } }
564564
val groupCol = left.groups.toColumnAccessor()
565565
val joined = left.toDataFrame().join(right.toDataFrame()) { groupCol }
566566
joined.columnsCount() shouldBe 3

0 commit comments

Comments
 (0)