File tree 2 files changed +0
-63
lines changed
core/generated-sources/src
main/kotlin/org/jetbrains/kotlinx/dataframe/api
test/kotlin/org/jetbrains/kotlinx/dataframe/testSets/person
2 files changed +0
-63
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ import org.jetbrains.kotlinx.dataframe.api.countDistinct
48
48
import org.jetbrains.kotlinx.dataframe.api.dataFrameOf
49
49
import org.jetbrains.kotlinx.dataframe.api.default
50
50
import org.jetbrains.kotlinx.dataframe.api.describe
51
- import org.jetbrains.kotlinx.dataframe.api.digitize
52
51
import org.jetbrains.kotlinx.dataframe.api.distinct
53
52
import org.jetbrains.kotlinx.dataframe.api.distinctBy
54
53
import org.jetbrains.kotlinx.dataframe.api.div
@@ -1533,29 +1532,6 @@ class DataFrameTests : BaseTest() {
1533
1532
parsed shouldBe typed
1534
1533
}
1535
1534
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
-
1559
1535
@Test
1560
1536
fun corr () {
1561
1537
val fixed = typed.fillNulls { weight }.with { 60 }
You can’t perform that action at this time.
0 commit comments