@@ -206,6 +206,7 @@ public fun <T, C> DataFrame<T>.update(vararg columns: ColumnReference<C>): Updat
206206 *
207207 * @param [predicate] The [row value filter][RowValueFilter] to select the rows to update.
208208 */
209+ @Interpretable(" UpdateWhere" )
209210public fun <T , C > Update <T , C >.where (predicate : RowValueFilter <T , C >): Update <T , C > =
210211 Update (df = df, filter = filter and predicate, columns = columns)
211212
@@ -236,6 +237,7 @@ private interface CommonUpdateAtFunctionDoc {
236237 *
237238 * @param [rowIndices] {@include [CommonUpdateAtFunctionDoc.RowIndicesParam]}
238239 */
240+ @Interpretable(" UpdateAt" )
239241public fun <T , C > Update <T , C >.at (rowIndices : Collection <Int >): Update <T , C > = where { index in rowIndices }
240242
241243/* *
@@ -245,6 +247,7 @@ public fun <T, C> Update<T, C>.at(rowIndices: Collection<Int>): Update<T, C> = w
245247 *
246248 * @param [rowIndices] {@include [CommonUpdateAtFunctionDoc.RowIndicesParam]}
247249 */
250+ @Interpretable(" UpdateAt" )
248251public fun <T , C > Update <T , C >.at (vararg rowIndices : Int ): Update <T , C > = at(rowIndices.toSet())
249252
250253/* *
@@ -254,6 +257,7 @@ public fun <T, C> Update<T, C>.at(vararg rowIndices: Int): Update<T, C> = at(row
254257 *
255258 * @param [rowRange] {@include [CommonUpdateAtFunctionDoc.RowIndicesParam]}
256259 */
260+ @Interpretable(" UpdateAt" )
257261public fun <T , C > Update <T , C >.at (rowRange : IntRange ): Update <T , C > = where { index in rowRange }
258262
259263/* * ## Per Row Col
@@ -265,6 +269,7 @@ public fun <T, C> Update<T, C>.at(rowRange: IntRange): Update<T, C> = where { in
265269 * - {@include [SeeAlsoUpdatePerCol]}
266270 * @param [expression] The {@include [ExpressionsGivenRowAndColumn.RowColumnExpressionLink]} to provide a new value for every selected cell giving its row and column.
267271 */
272+ @Interpretable(" UpdatePerRowCol" )
268273public inline fun <T , C > Update <T , C >.perRowCol (crossinline expression : RowColumnExpression <T , C , C >): DataFrame <T > =
269274 updateImpl { row, column, _ -> expression(row, column) }
270275
@@ -354,6 +359,7 @@ private interface CommonUpdatePerColMapDoc
354359 * @param [values] The [Map]<[String], Value> to provide a new value for every selected cell.
355360 * For each selected column, there must be a value in the map with the same name.
356361 */
362+ @Interpretable(" UpdatePerColMap" )
357363public fun <T , C > Update <T , C >.perCol (values : Map <String , C >): DataFrame <T > =
358364 updateWithValuePerColumnImpl {
359365 values[it.name()] ? : throw IllegalArgumentException (" Update value for column ${it.name()} is not defined" )
@@ -371,6 +377,7 @@ public fun <T, C> Update<T, C>.perCol(values: Map<String, C>): DataFrame<T> =
371377 *
372378 * @param [values] The [DataRow] to provide a new value for every selected cell.
373379 */
380+ @Interpretable(" UpdatePerColRow" )
374381public fun <T , C > Update <T , C >.perCol (values : AnyRow ): DataFrame <T > = perCol(values.toMap() as Map <String , C >)
375382
376383/* *
@@ -380,6 +387,7 @@ public fun <T, C> Update<T, C>.perCol(values: AnyRow): DataFrame<T> = perCol(val
380387 *
381388 * @param [valueSelector] The {@include [ExpressionsGivenColumn.ColumnExpressionLink]} to provide a new value for every selected cell giving its column.
382389 */
390+ @Interpretable(" UpdatePerCol" )
383391public fun <T , C > Update <T , C >.perCol (valueSelector : ColumnExpression <C , C >): DataFrame <T > =
384392 updateWithValuePerColumnImpl(valueSelector)
385393
@@ -395,6 +403,7 @@ internal infix fun <T, C> RowValueFilter<T, C>?.and(other: RowValueFilter<T, C>)
395403}
396404
397405/* * @include [Update.notNull] */
406+ @Interpretable(" UpdateNotNullDefault" )
398407public fun <T , C > Update <T , C ?>.notNull (): Update <T , C > = where { it != null } as Update <T , C >
399408
400409/* *
@@ -418,6 +427,7 @@ public fun <T, C> Update<T, C?>.notNull(): Update<T, C> = where { it != null } a
418427 * {@comment No brackets around `expression` because this doc is copied to [Update.notNull]}
419428 * @param expression Optional {@include [ExpressionsGivenRow.RowExpressionLink]} to update the rows with.
420429 */
430+ @Interpretable(" UpdateNotNull" )
421431public fun <T , C > Update <T , C ?>.notNull (expression : UpdateExpression <T , C , C >): DataFrame <T > =
422432 notNull().with (expression)
423433
0 commit comments