File tree Expand file tree Collapse file tree 4 files changed +0
-10
lines changed
main/kotlin/org/jetbrains/kotlinx/dataframe/impl/api
test/kotlin/org/jetbrains/kotlinx/dataframe/api
main/kotlin/org/jetbrains/kotlinx/dataframe/impl/api
test/kotlin/org/jetbrains/kotlinx/dataframe/api Expand file tree Collapse file tree 4 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,11 @@ import org.jetbrains.kotlinx.dataframe.impl.columns.tree.allChildrenNotNull
12
12
import org.jetbrains.kotlinx.dataframe.impl.columns.tree.collectTree
13
13
import org.jetbrains.kotlinx.dataframe.kind
14
14
15
-
16
15
internal fun <T , C > RenameClause <T , C >.renameImpl (newNames : Array <out String >): DataFrame <T > {
17
16
var i = 0
18
17
return renameImpl { newNames[i++ ] }
19
18
}
20
19
21
-
22
20
internal fun <T , C > RenameClause <T , C >.renameImpl (transform : (ColumnWithPath <C >) -> String ): DataFrame <T > {
23
21
val selectedColumns = df.getColumnsWithPaths(columns)
24
22
val tree = df.getColumnsWithPaths { all().rec() }.collectTree()
Original file line number Diff line number Diff line change @@ -3,12 +3,9 @@ package org.jetbrains.kotlinx.dataframe.api
3
3
import io.kotest.assertions.asClue
4
4
import io.kotest.assertions.throwables.shouldNotThrowAny
5
5
import io.kotest.matchers.shouldBe
6
- import org.jetbrains.kotlinx.dataframe.AnyRow
7
- import org.jetbrains.kotlinx.dataframe.alsoDebug
8
6
import org.jetbrains.kotlinx.dataframe.impl.columns.asAnyFrameColumn
9
7
import org.junit.Test
10
8
11
-
12
9
class RenameTests {
13
10
companion object {
14
11
val simpleDf = dataFrameOf(" a" , " b" , " c" )(
Original file line number Diff line number Diff line change @@ -12,13 +12,11 @@ import org.jetbrains.kotlinx.dataframe.impl.columns.tree.allChildrenNotNull
12
12
import org.jetbrains.kotlinx.dataframe.impl.columns.tree.collectTree
13
13
import org.jetbrains.kotlinx.dataframe.kind
14
14
15
-
16
15
internal fun <T , C > RenameClause <T , C >.renameImpl (newNames : Array <out String >): DataFrame <T > {
17
16
var i = 0
18
17
return renameImpl { newNames[i++ ] }
19
18
}
20
19
21
-
22
20
internal fun <T , C > RenameClause <T , C >.renameImpl (transform : (ColumnWithPath <C >) -> String ): DataFrame <T > {
23
21
val selectedColumns = df.getColumnsWithPaths(columns)
24
22
val tree = df.getColumnsWithPaths { all().rec() }.collectTree()
Original file line number Diff line number Diff line change @@ -3,12 +3,9 @@ package org.jetbrains.kotlinx.dataframe.api
3
3
import io.kotest.assertions.asClue
4
4
import io.kotest.assertions.throwables.shouldNotThrowAny
5
5
import io.kotest.matchers.shouldBe
6
- import org.jetbrains.kotlinx.dataframe.AnyRow
7
- import org.jetbrains.kotlinx.dataframe.alsoDebug
8
6
import org.jetbrains.kotlinx.dataframe.impl.columns.asAnyFrameColumn
9
7
import org.junit.Test
10
8
11
-
12
9
class RenameTests {
13
10
companion object {
14
11
val simpleDf = dataFrameOf(" a" , " b" , " c" )(
You can’t perform that action at this time.
0 commit comments