@@ -18,6 +18,7 @@ import org.jetbrains.kotlinx.dataframe.impl.api.withRowCellImpl
18
18
import org.jetbrains.kotlinx.dataframe.impl.asList
19
19
import org.jetbrains.kotlinx.dataframe.impl.columnName
20
20
import org.jetbrains.kotlinx.dataframe.impl.getListType
21
+ import org.jetbrains.kotlinx.dataframe.util.SPLIT_STR
21
22
import kotlin.reflect.KProperty
22
23
import kotlin.reflect.KType
23
24
import kotlin.reflect.typeOf
@@ -65,6 +66,7 @@ public typealias ColumnNamesGenerator<C> = ColumnWithPath<C>.(extraColumnIndex:
65
66
public inline fun <T , C : Iterable <R >, reified R > Split <T , C >.default (value : R ? ): SplitWithTransform <T , C , R > =
66
67
by { it }.default(value)
67
68
69
+ @Deprecated(SPLIT_STR , ReplaceWith (""" by(",").default(value)""" ))
68
70
public fun <T > Split <T , String >.default (value : String? ): SplitWithTransform <T , String , String > =
69
71
by { it.splitDefault() }.default(value)
70
72
@@ -219,6 +221,7 @@ public inline fun <T, reified A, reified B> Split<T, Pair<A, B>>.into(
219
221
secondCol : ColumnAccessor <B >,
220
222
): DataFrame <T > = by { listOf (it.first, it.second) }.into(firstCol, secondCol)
221
223
224
+ @Deprecated(SPLIT_STR , ReplaceWith (""" by(",").into(*names, extraNamesGenerator = extraNamesGenerator)""" ))
222
225
@JvmName(" intoTC" )
223
226
public fun <T > Split <T , String >.into (
224
227
vararg names : String ,
@@ -280,6 +283,7 @@ public inline fun <T, reified A, reified B> Split<T, Pair<A, B>>.inward(
280
283
secondCol : ColumnAccessor <B >,
281
284
): DataFrame <T > = by { listOf (it.first, it.second) }.inward(firstCol, secondCol)
282
285
286
+ @Deprecated(SPLIT_STR , ReplaceWith (""" by(",").inward(*names, extraNamesGenerator = extraNamesGenerator)""" ))
283
287
@JvmName(" inwardTC" )
284
288
public fun <T > Split <T , String >.inward (
285
289
vararg names : String ,
0 commit comments