Skip to content

Commit d1ea42d

Browse files
convert fix
1 parent 427b59b commit d1ea42d

File tree

2 files changed

+10
-10
lines changed
  • core
    • generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api
    • src/main/kotlin/org/jetbrains/kotlinx/dataframe/api

2 files changed

+10
-10
lines changed

core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/convert.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,8 @@ public fun <T, C> Convert<T, C>.to(columnConverter: DataFrame<T>.(DataColumn<C>)
526526
df.replace(columns).with { columnConverter(df, it) }
527527

528528
/**
529-
* Converts values in the columns previously selected with [convert]
530-
* using [row value][RowValueExpression] [expression] within the [DataFrame].
529+
* Converts values in columns previously selected by [convert] using the specified [rowConverter],
530+
* a [row value expression][RowValueExpression] applied to each row in the [DataFrame].
531531
*
532532
* A [row value expression][RowValueExpression] allows to provide a new value for every selected cell
533533
* given its row (as a receiver) and its previous value (as a lambda argument).
@@ -555,15 +555,15 @@ public fun <T, C> Convert<T, C>.to(columnConverter: DataFrame<T>.(DataColumn<C>)
555555
*
556556
* @param infer [Infer] strategy that defines how the [type][DataColumn.type] of the resulting column should be determined.
557557
* Defaults to [Infer.Nulls].
558-
* @param [expression] The [RowValueExpression] to provide a new value for every selected cell giving its row and previous value.
558+
* @param [rowConverter] The [RowValueExpression] to provide a new value for every selected cell giving its row and previous value.
559559
* @return A new [DataFrame] with the converted values.
560560
*/
561561
@Refine
562562
@Interpretable("With0")
563563
public inline fun <T, C, reified R> Convert<T, C>.with(
564564
infer: Infer = Infer.Nulls,
565-
noinline expression: RowValueExpression<T, C, R>,
566-
): DataFrame<T> = withRowCellImpl(typeOf<R>(), infer, expression)
565+
noinline rowConverter: RowValueExpression<T, C, R>,
566+
): DataFrame<T> = withRowCellImpl(typeOf<R>(), infer, rowConverter)
567567

568568
/**
569569
* Converts [column groups][ColumnGroup] previously selected with [convert]

core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/convert.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,8 @@ private interface SeeAlsoConvertPerRowCol
395395
private interface SeeAlsoConvertAsColumn
396396

397397
/**
398-
* Converts values in the columns previously selected with [convert]
399-
* using [row value][RowValueExpression] [expression] within the [DataFrame].
398+
* Converts values in columns previously selected by [convert] using the specified [rowConverter],
399+
* a [row value expression][RowValueExpression] applied to each row in the [DataFrame].
400400
*
401401
* A [row value expression][RowValueExpression] allows to provide a new value for every selected cell
402402
* given its row (as a receiver) and its previous value (as a lambda argument).
@@ -419,15 +419,15 @@ private interface SeeAlsoConvertAsColumn
419419
*
420420
* @param infer [Infer] strategy that defines how the [type][DataColumn.type] of the resulting column should be determined.
421421
* Defaults to [Infer.Nulls].
422-
* @param [expression] The [RowValueExpression] to provide a new value for every selected cell giving its row and previous value.
422+
* @param [rowConverter] The [RowValueExpression] to provide a new value for every selected cell giving its row and previous value.
423423
* @return A new [DataFrame] with the converted values.
424424
*/
425425
@Refine
426426
@Interpretable("With0")
427427
public inline fun <T, C, reified R> Convert<T, C>.with(
428428
infer: Infer = Infer.Nulls,
429-
noinline expression: RowValueExpression<T, C, R>,
430-
): DataFrame<T> = withRowCellImpl(typeOf<R>(), infer, expression)
429+
noinline rowConverter: RowValueExpression<T, C, R>,
430+
): DataFrame<T> = withRowCellImpl(typeOf<R>(), infer, rowConverter)
431431

432432
/**
433433
* Converts [column groups][ColumnGroup] previously selected with [convert]

0 commit comments

Comments
 (0)