Skip to content

Commit ae60ed9

Browse files
Automated commit of generated code
1 parent 992c4a5 commit ae60ed9

File tree

2 files changed

+0
-63
lines changed
  • core/generated-sources/src

2 files changed

+0
-63
lines changed

core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/digitize.kt

-39
This file was deleted.

core/generated-sources/src/test/kotlin/org/jetbrains/kotlinx/dataframe/testSets/person/DataFrameTests.kt

-24
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ import org.jetbrains.kotlinx.dataframe.api.countDistinct
4848
import org.jetbrains.kotlinx.dataframe.api.dataFrameOf
4949
import org.jetbrains.kotlinx.dataframe.api.default
5050
import org.jetbrains.kotlinx.dataframe.api.describe
51-
import org.jetbrains.kotlinx.dataframe.api.digitize
5251
import org.jetbrains.kotlinx.dataframe.api.distinct
5352
import org.jetbrains.kotlinx.dataframe.api.distinctBy
5453
import org.jetbrains.kotlinx.dataframe.api.div
@@ -1533,29 +1532,6 @@ class DataFrameTests : BaseTest() {
15331532
parsed shouldBe typed
15341533
}
15351534

1536-
@Test
1537-
fun digitize() {
1538-
val a = 20
1539-
val b = 40
1540-
val expected = typed.age.toList().map {
1541-
when {
1542-
it < a -> 0
1543-
it < b -> 1
1544-
else -> 2
1545-
}
1546-
}
1547-
typed.age.digitize(a, b).toList() shouldBe expected
1548-
1549-
val expectedRight = typed.age.toList().map {
1550-
when {
1551-
it <= a -> 0
1552-
it <= b -> 1
1553-
else -> 2
1554-
}
1555-
}
1556-
typed.age.digitize(a, b, right = true).toList() shouldBe expectedRight
1557-
}
1558-
15591535
@Test
15601536
fun corr() {
15611537
val fixed = typed.fillNulls { weight }.with { 60 }

0 commit comments

Comments
 (0)