@@ -10,7 +10,6 @@ import org.jetbrains.kotlinx.dataframe.ColumnsContainer
10
10
import org.jetbrains.kotlinx.dataframe.DataColumn
11
11
import org.jetbrains.kotlinx.dataframe.DataFrame
12
12
import org.jetbrains.kotlinx.dataframe.DataRow
13
- import org.jetbrains.kotlinx.dataframe.RowExpression
14
13
import org.jetbrains.kotlinx.dataframe.Selector
15
14
import org.jetbrains.kotlinx.dataframe.annotations.AccessApiOverload
16
15
import org.jetbrains.kotlinx.dataframe.annotations.Interpretable
@@ -259,27 +258,27 @@ public class AddDsl<T>(
259
258
internal inline fun <reified R > add (
260
259
name : String ,
261
260
infer : Infer = Infer .Nulls ,
262
- noinline expression : RowExpression <T , R >,
261
+ noinline expression : AddExpression <T , R >,
263
262
): Boolean = add(df.mapToColumn(name, infer, expression))
264
263
265
264
public inline fun <reified R > expr (
266
265
infer : Infer = Infer .Nulls ,
267
- noinline expression : RowExpression <T , R >,
266
+ noinline expression : AddExpression <T , R >,
268
267
): DataColumn <R > = df.mapToColumn(" " , infer, expression)
269
268
270
269
@Interpretable(" From" )
271
- public inline infix fun <reified R > String.from (noinline expression : RowExpression <T , R >): Boolean =
270
+ public inline infix fun <reified R > String.from (noinline expression : AddExpression <T , R >): Boolean =
272
271
add(this , Infer .Nulls , expression)
273
272
274
273
// TODO: use path instead of name
275
274
@Deprecated(DEPRECATED_ACCESS_API )
276
275
@AccessApiOverload
277
- public inline infix fun <reified R > ColumnAccessor<R>.from (noinline expression : RowExpression <T , R >): Boolean =
276
+ public inline infix fun <reified R > ColumnAccessor<R>.from (noinline expression : AddExpression <T , R >): Boolean =
278
277
name().from(expression)
279
278
280
279
@Deprecated(DEPRECATED_ACCESS_API )
281
280
@AccessApiOverload
282
- public inline infix fun <reified R > KProperty<R>.from (noinline expression : RowExpression <T , R >): Boolean =
281
+ public inline infix fun <reified R > KProperty<R>.from (noinline expression : AddExpression <T , R >): Boolean =
283
282
add(name, Infer .Nulls , expression)
284
283
285
284
public infix fun String.from (column : AnyColumnReference ): Boolean = add(column.rename(this ))
@@ -417,15 +416,15 @@ public fun <T> DataFrame<T>.add(body: AddDsl<T>.() -> Unit): DataFrame<T> {
417
416
public inline fun <reified R , T , G > GroupBy <T , G >.add (
418
417
name : String ,
419
418
infer : Infer = Infer .Nulls ,
420
- noinline expression : RowExpression <G , R >,
419
+ noinline expression : AddExpression <G , R >,
421
420
): GroupBy <T , G > = updateGroups { add(name, infer, expression) }
422
421
423
422
@Deprecated(DEPRECATED_ACCESS_API )
424
423
@AccessApiOverload
425
424
public inline fun <reified R , T , G > GroupBy <T , G >.add (
426
425
column : ColumnAccessor <G >,
427
426
infer : Infer = Infer .Nulls ,
428
- noinline expression : RowExpression <G , R >,
427
+ noinline expression : AddExpression <G , R >,
429
428
): GroupBy <T , G > = add(column.name(), infer, expression)
430
429
431
430
public class AddGroup <T >(internal val body : AddDsl <T >.() -> Unit )
0 commit comments