Skip to content

Commit c0cf837

Browse files
Automated commit of generated code
1 parent 421bb98 commit c0cf837

File tree

1 file changed

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

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ public fun <T, C> Update<T, C>.at(rowRange: IntRange): Update<T, C> = where { in
444444
* - [Update per col][org.jetbrains.kotlinx.dataframe.api.Update.perCol] to provide a new value for every selected cell giving its column.
445445
* @param [expression] The [Row Column Expression][org.jetbrains.kotlinx.dataframe.documentation.ExpressionsGivenRowAndColumn.RowColumnExpression] to provide a new value for every selected cell giving its row and column.
446446
*/
447+
@Refine
447448
@Interpretable("UpdatePerRowCol")
448449
public inline fun <T, C> Update<T, C>.perRowCol(crossinline expression: RowColumnExpression<T, C, C>): DataFrame<T> =
449450
updateImpl { row, column, _ -> expression(row, column) }
@@ -529,6 +530,7 @@ public fun <T, C, R> Update<T, DataRow<C>>.asFrame(expression: DataFrameExpressi
529530
* @param [values] The [Map]<[String], Value> to provide a new value for every selected cell.
530531
* For each selected column, there must be a value in the map with the same name.
531532
*/
533+
@Refine
532534
@Interpretable("UpdatePerColMap")
533535
public fun <T, C> Update<T, C>.perCol(values: Map<String, C>): DataFrame<T> =
534536
updateWithValuePerColumnImpl {
@@ -568,6 +570,7 @@ public fun <T, C> Update<T, C>.perCol(values: Map<String, C>): DataFrame<T> =
568570
*
569571
* @param [values] The [DataRow] to provide a new value for every selected cell.
570572
*/
573+
@Refine
571574
@Interpretable("UpdatePerColRow")
572575
public fun <T, C> Update<T, C>.perCol(values: AnyRow): DataFrame<T> = perCol(values.toMap() as Map<String, C>)
573576

@@ -596,6 +599,7 @@ public fun <T, C> Update<T, C>.perCol(values: AnyRow): DataFrame<T> = perCol(val
596599
*
597600
* @param [valueSelector] The [Column Expression][org.jetbrains.kotlinx.dataframe.documentation.ExpressionsGivenColumn.ColumnExpression] to provide a new value for every selected cell giving its column.
598601
*/
602+
@Refine
599603
@Interpretable("UpdatePerCol")
600604
public fun <T, C> Update<T, C>.perCol(valueSelector: ColumnExpression<C, C>): DataFrame<T> =
601605
updateWithValuePerColumnImpl(valueSelector)
@@ -650,6 +654,7 @@ public fun <T, C> Update<T, C?>.notNull(): Update<T, C> = where { it != null } a
650654
*
651655
* @param expression Optional [Row Expression][org.jetbrains.kotlinx.dataframe.documentation.ExpressionsGivenRow.RowExpression.WithExample] to update the rows with.
652656
*/
657+
@Refine
653658
@Interpretable("UpdateNotNull")
654659
public fun <T, C> Update<T, C?>.notNull(expression: UpdateExpression<T, C, C>): DataFrame<T> =
655660
notNull().with(expression)
@@ -787,6 +792,8 @@ public fun <T> DataFrame<T>.update(
787792
*
788793
*
789794
*/
795+
@Refine
796+
@Interpretable("UpdateWithNull")
790797
public fun <T, C> Update<T, C>.withNull(): DataFrame<T> = with { null }
791798

792799
/**
@@ -799,4 +806,6 @@ public fun <T, C> Update<T, C>.withNull(): DataFrame<T> = with { null }
799806
*
800807
*
801808
*/
809+
@Refine
810+
@Interpretable("UpdateWithZero")
802811
public fun <T, C> Update<T, C>.withZero(): DataFrame<T> = updateWithValuePerColumnImpl { 0 as C }

0 commit comments

Comments
 (0)