File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/org/jetbrains/kotlinx/dataframe/plugin/impl/api Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import org.jetbrains.kotlinx.dataframe.plugin.impl.toPluginDataFrameSchema
14
14
class FlattenDefault : AbstractSchemaModificationInterpreter () {
15
15
val Arguments .receiver by dataFrame()
16
16
val Arguments .keepParentNameForColumns: Boolean by arg(defaultValue = Present (false ))
17
- val Arguments .separator: String by arg(defaultValue = Present (" . " ))
17
+ val Arguments .separator: String by arg(defaultValue = Present (" _ " ))
18
18
19
19
override fun Arguments.interpret (): PluginDataFrameSchema {
20
20
return receiver.asDataFrame().flatten(keepParentNameForColumns, separator).toPluginDataFrameSchema()
@@ -24,7 +24,7 @@ class FlattenDefault : AbstractSchemaModificationInterpreter() {
24
24
class Flatten0 : AbstractSchemaModificationInterpreter () {
25
25
val Arguments .receiver by dataFrame()
26
26
val Arguments .keepParentNameForColumns: Boolean by arg(defaultValue = Present (false ))
27
- val Arguments .separator: String by arg(defaultValue = Present (" . " ))
27
+ val Arguments .separator: String by arg(defaultValue = Present (" _ " ))
28
28
val Arguments .columns: ColumnsResolver by arg()
29
29
30
30
override fun Arguments.interpret (): PluginDataFrameSchema {
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ fun box(): String {
14
14
flattened.compareSchemas(strict = true )
15
15
flattened.ungroup { f }.compareSchemas(strict = true )
16
16
17
+ grouped.flatten(keepParentNameForColumns = true ) { f.e }.compareSchemas(strict = true )
18
+
17
19
grouped.flatten { f.e and f }.compareSchemas(strict = true )
18
20
return " OK"
19
21
}
You can’t perform that action at this time.
0 commit comments