File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 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
4848import org.jetbrains.kotlinx.dataframe.api.dataFrameOf
4949import org.jetbrains.kotlinx.dataframe.api.default
5050import org.jetbrains.kotlinx.dataframe.api.describe
51- import org.jetbrains.kotlinx.dataframe.api.digitize
5251import org.jetbrains.kotlinx.dataframe.api.distinct
5352import org.jetbrains.kotlinx.dataframe.api.distinctBy
5453import 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 }
You can’t perform that action at this time.
0 commit comments